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刪除。



猜您在找 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. service mysql start ,出現錯誤Job for mysql.service failed because the control process exited process exited with error code. See "systemctl status mysql.service" and "journalctl -xe" for details. Job for mariadb.service failed because the control process exited with error code. See "systemctl status mariadb.service" and "journalctl -xe" for details Job for mongod.service failed because the control process exited with error code. See "systemctl status mongod.service" and "journalctl -xe" for details Jenkins++:Job for jenkins.service failed because the control process exited with error code. See "systemctl st Job for jenkins.service failed because the control process exited with error code. Linux系統Docker啟動問題Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" ubuntu16.04,mysql5.7重啟不成功。Restarting mysql (via systemctl): mysql.serviceJob for mysql.service failed because the control process exited with error code. See "systemctl status mysql.service" centos 報錯 “Job for iptables.service failed because the control process exited with error code.”的解決辦法
 
粵ICP備18138465號   © 2018-2026 CODEPRJ.COM