轉自:https://www.cnblogs.com/wangzy-Zj/p/14950295.html
Job for jenkins.service failed because the control process exited with error code. See "systemctl status jenkins.service" and "journalctl -xe" for details.
現象:

1、首先查看日志
systemctl status jenkins.service 或 journalctl -xe
發現是找不到 java 路徑

2、配置 java 路徑
2.1 查看當前 java 環境位置
echo $JAVA_HOME
2.2 修改配置環境
追加 java 環境路徑
vi /etc/init.d/jenkins


3、加載並重新啟動
systemctl daemon-reload systemctl start jenkins
注意:如果不重新加載的話啟動會告警:

4、查看狀態
systemctl status jenkins

