启动jenkins报错:Failed to start LSB: Jenkins Automation Server
环境
linux
现象
首次安装jenkins后,启动报错
[root@test-210-50 jenkins]# systemctl start jenkins.service
Job for jenkins.service failed because the control process exited with error code. See "systemctl status jenkins.service" and "journalctl -xe" for details.
原因
查看详细原因发现是java路径不对:
解决方案
获取本地java地址:
[root@test-210-50 jenkins]# which java
/usr/java/jdk1.8.0_101/bin/java修改jenkins的配置文件:
vim /etc/init.d/jenkins
还没有评论,来说两句吧...