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开发中多线程断点下载大文件
    iOS开发中的压缩以及解压
    iOS中大文件下载(单线程下载)
    NSURLConnection的GetPost方法
    自定义NSOperation下载图片
    NSOperation和NSOperationQueue的一些基本操作
    虚函数、继承
    new、delete、以及queue类
    new、delete、以及queue类
    在构造函数中使用new时的注意事项
  • 原文地址:https://www.cnblogs.com/paper-man/p/13284724.html
Copyright © 2011-2022 走看看