Jenkins 安裝啟動提示“iJob for jenkins.service failed because the control process exited with error code. See "systemctl status jenkins.service" and "journalctl -xe" for details.”


  通過RPM安裝Jenkins簡單方便,不太需要復雜的過程,但是在安裝完成以后啟動Jenkins的時候提示“Starting jenkins (via systemctl): Job for jenkins.service failed because the control process exited with error code. See "systemctl status jenkins.service" and "journalctl -xe" for details.”,此時無法啟動Jenkins,需要執行systemctl status jenkins.service來檢查下其狀態;

通過檢查Jenkins的運行狀態我們可以捕捉到啟動的時候報錯“Starting Jenkins bash: /usr/bin/java: No such file or directory”,沒有找到jdk;

因為此時我默認安裝的jdk的路徑是“/usr/java/jdk1.8.0_91/bin/”,此時我們需要修改下Jenkins的查找jdk的路徑;

打開“Jenkins的啟動腳本路徑/etc/rc.d/init.d/jenkins”,搜索jdk的配置路徑

此時觀察我們發現默認搜索的路徑是/usr/bin/java,所以需要變更成為自己的jdk路徑“/usr/java/jdk1.8.0_91/bin/java”,注意需要指定到java的執行文件,修改完成重新啟動;

這樣我們就可以成功的啟動Jenkins啦


免責聲明!

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



猜您在找 Job for postfix.service failed because the control process exited with error code. See "systemctl status postfix.service" and "journalctl -xe" for details. Linux 重啟網卡失敗 Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details. 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 dhcpd.service failed because the control process exited with error code. See "systemctl status dhcpd.service" and "journalctl -xe" for details.問題 【問題管理】 -- RabbitMQ啟動時報錯:Job for rabbitmq-server.service failed because the control process exited with error code. See "systemctl status rabbl -xe" for details. 045.PGSQL-啟動數據庫報錯Job for postgresql-13.service failed because the control process exited with error code. See "systemctl status postgresql-13.service" and "journalctl -xe" for details. [linux]DHCP服務器啟動報錯Job for dhcpd.service failed because the control process exited with error code. See “systemctl status dhcpd.service” and “journalctl -xe” for details. Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details Job for nginx.service failed because the control process exited with error code. See “systemctl stat See "systemctl status postfix.service" and "journalctl -xe" for details.
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM