zoukankan      html  css  js  c++  java
  • Job for jenkins.service failed because the control process exited with error code

    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):jenkins.service的作业失败,因为控制进程退出并显示错误代码。 有关详细信息,请参阅“systemctl status jenkins.service”和“journalctl -xe”。

    按提示输入:systemctl status jenkins.service

    ● jenkins.service - LSB: Jenkins Automation Server
       Loaded: loaded (/etc/rc.d/init.d/jenkins; bad; vendor preset: disabled)
       Active: failed (Result: exit-code) since Sun 2018-09-09 17:46:22 CST; 2min 12s ago
         Docs: man:systemd-sysv-generator(8)
      Process: 9429 ExecStart=/etc/rc.d/init.d/jenkins start (code=exited, status=1/FAILURE)
    
    Sep 09 17:46:22 izm5e1qim1yoreb6toj6d9z systemd[1]: Starting LSB: Jenkins Automation Server...
    Sep 09 17:46:22 izm5e1qim1yoreb6toj6d9z runuser[9434]: pam_unix(runuser:session): session opened for user jenkins by (uid=0)
    Sep 09 17:46:22 izm5e1qim1yoreb6toj6d9z jenkins[9429]: Starting Jenkins bash: /usr/bin/java: No such file or directory
    Sep 09 17:46:22 izm5e1qim1yoreb6toj6d9z jenkins[9429]: [FAILED]
    Sep 09 17:46:22 izm5e1qim1yoreb6toj6d9z systemd[1]: jenkins.service: control process exited, code=exited status=1
    Sep 09 17:46:22 izm5e1qim1yoreb6toj6d9z systemd[1]: Failed to start LSB: Jenkins Automation Server.
    Sep 09 17:46:22 izm5e1qim1yoreb6toj6d9z systemd[1]: Unit jenkins.service entered failed state.
    Sep 09 17:46:22 izm5e1qim1yoreb6toj6d9z systemd[1]: jenkins.service failed.

    解决办法
    意思就是没有找到java文件,需要自己把java文件地址复制过去
    修改/etc/init.d/jenkins文件
    这里写图片描述
    粘贴即可

  • 相关阅读:
    iOS 即时通讯 + 仿微信聊天框架 + 源码
    Accelerate Framework in Swift
    最新 iOS 框架整体梳理(三)
    最新 iOS 框架整体梳理(二)
    单元测试
    iOS
    画个Shape留意到的东西
    deleteSections & deleteRows 我踩的坑
    常用开发技巧系列(六)
    程序员该如何提高睡眠质量?—程序媛233酱的助攻~
  • 原文地址:https://www.cnblogs.com/paper-man/p/13284724.html
Copyright © 2011-2022 走看看