Jenkins報錯:Job for jenkins.service failed because the control process exited with error code. See "systemctl status jenkins.service" and "journalctl -xe" for details.


轉自: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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



猜您在找 啟動Jenkins報錯"Job for jenkins.service failed because the control process exited with error code. See "systemctl status jenkins.service" and "journalctl -xe" for details."解決辦法 Jenkins 安裝啟動提示“iJob for jenkins.service failed because the control process exited with error code. See "systemctl status jenkins.service" and "journalctl -xe" for details.” Job for jenkins.service failed because the control process exited with error code. See "systemctl st Jenkins++:Job for jenkins.service failed because the control process exited with error code. See "systemctl st linux----------啟動network的時候報錯Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details. docker 報錯: Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details. centos7啟動MySQL報 Job for mysqld.service failed because the control process exited with error code. See "systemctl status mysqld.service" and "journalctl -xe" for details. Job for php-fpm.service failed because the control process exited with error code. See "systemctl status php-fpm.service" and "journalctl -xe" for details. Restarting network (via systemctl): Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details. Job for postfix.service failed because the control process exited with error code. See "systemctl status postfix.service" and "journalctl -xe" for details.
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM