Jenkins 安装启动提示“iJob for jenkins.service failed because the control process exited with error code. See "systemctl status jenkins.service" and "journalctl -xe" for details.”
2018-01-28 19:03
5644 查看
通过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啦
通过检查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啦
相关文章推荐
- 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
- Job for vsftpd.service failed because the control process exited with error code. See "systemctl sta
- 解决Job for docker.service failed because the control process exited with error code. See "systemctl s
- Job for postfix.service failed because the control process exited with error code. See "systemctl st
- Job for php-fpm.service failed because the control process exited with error code. See "systemctl st
- CentOS7启动SSH服务报:Job for ssh.service failed because the control process exited with error code.......
- Job for vsftpd.service failed because the control process exited with error code
- Centos 7不能上网,Job for iptables.service failed because the control process exited with error code.
- 关于nginx的Job for nginx.service failed because the control process exited with error code.错误
- Centos 7不能上网,Job for iptables.service failed because the control process exited with error code.
- 重启网卡报Job for network.service failed because the control process exited with error code.。。 错误
- Job for tomcat.service failed because the control process exited with error code 解决办法:
- centos出现这个错误:Job for sshd.service failed because the control process exited with error code.
- 解决Docker启动服务器链接失败-Job for docker.service failed because the control process exited error code
- Dockers Job for docker.service failed because the control process exited with error code
- nginx启动报错:Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' fo
- gitlab搭建提示inet_interfacesJob for postfix.service failed because the control process exited with erro
- OpenStack常见错误:无法开启http服务 Job for httpd.service failed because the control process exited with error
- Job for firewalld.service failed because a timeout was exceeded. See "systemctl status firewalld.ser