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文件
    这里写图片描述
    粘贴即可

  • 相关阅读:
    转 -- Linux系列:Ubuntu虚拟机设置固定IP上网(配置IP、网关、DNS、防止resolv.conf被重写)
    转 -- 求一个二进制数值中的1的个数
    ubuntu 搭建 samba 服务器
    64bit ubuntu 安装32bit的软件
    ubuntu 添加管理员账户
    #ifdef 和 #if defined 的区别 -- 转
    xming + putty 搭建远程图形化ssh访问ubuntu 14.04
    ubuntu 安装bochs
    强制类型转换中的精度丢失
    转载 -- 如何判断Javascript对象是否存在
  • 原文地址:https://www.cnblogs.com/paper-man/p/13284724.html
Copyright © 2011-2022 走看看