Ubuntu安装jenkins后报 “If you actually have java installed on the system make sure the executable i...”

Ubuntu安装jenkins报:Faild to Start Jenkins at boot time

显示加载/etc/init.d/jenkins安装异常 ,没有可执行的java程序。

提示已经给出,在命令行执行‘type -p java’可看到可执行java的路径

Ubuntu安装jenkins报:Faild to Start Jenkins at boot time

将得到的路径复制,粘贴到提示中的/etc/init.d/jenkins文件(网上会有说修改的不是这个文件,按照报错提示,打开对应的报错提示显示的文件即可)中JAVA='type -p java',替换'tyope -p java'为刚才复制内容即可。

Ubuntu安装jenkins报:Faild to Start Jenkins at boot time

再重新执行安装命令,安装成功 

相关文章:

  • 2021-10-26
  • 2022-01-02
  • 2022-12-23
  • 2022-01-09
  • 2022-01-23
  • 2021-11-17
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-30
  • 2021-10-30
  • 2021-07-19
  • 2021-10-07
  • 2021-04-01
相关资源
相似解决方案