本文主要是介绍启动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
这篇关于启动jenkins报错:Failed to start LSB: Jenkins Automation Server的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!