Jenkins安装启动报错Job for jenkins.service failed because the control process exited with error code.

Jenkins安装启动报错Job for jenkins.service failed because the control process exited with error code. See "systemctl status jenkins.service" and "journalctl -xe" for details.


[root@localhost jenkins]# systemctl start jenkins
Job for jenkins.service failed because the control process exited with error code. See "systemctl status jenkins.service" and "journalctl -xe" for details.
[root@localhost jenkins]# systemctl status jenkins
● jenkins.service - Jenkins Continuous Integration Server
   Loaded: loaded (/usr/lib/systemd/system/jenkins.service; disabled; vendor preset: disabled)
   Active: failed (Result: start-limit) since Tue 2023-02-21 18:59:14 CST; 30s ago
  Process: 9388 ExecStart=/usr/bin/jenkins (code=exited, status=1/FAILURE)
 Main PID: 9388 (code=exited, status=1/FAILURE)

Feb 21 18:59:14 localhost.localdomain systemd[1]: Failed to start Jenkins Continuous Integration Server.
Feb 21 18:59:14 localhost.localdomain systemd[1]: Unit jenkins.service entered failed state.
Feb 21 18:59:14 localhost.localdomain systemd[1]: jenkins.service failed.
Feb 21 18:59:14 localhost.localdomain systemd[1]: jenkins.service holdoff time over, scheduling restart.
Feb 21 18:59:14 localhost.localdomain systemd[1]: Stopped Jenkins Continuous Integration Server.
Feb 21 18:59:14 localhost.localdomain systemd[1]: start request repeated too quickly for jenkins.service
Feb 21 18:59:14 localhost.localdomain systemd[1]: Failed to start Jenkins Continuous Integration Server.
Feb 21 18:59:14 localhost.localdomain systemd[1]: Unit jenkins.service entered failed state.
Feb 21 18:59:14 localhost.localdomain systemd[1]: jenkins.service failed.

网上发布到各种Jenkins安装方式都没有提到需要提前创建Jenkins所需目录,以至于执行yum install jenkins时,看到complete!会忽略掉安装过程中所报异常。

解决方法:

排查jenkins安装所需目录是否存在

/var/cache/jenkins /var/lib/jenkins /var/log/jenkins

若不存在,创建后重新执行yum install jenkins

并重新加载服务 systemctl daemon-reload

启动Jenkins  systemctl start jenkins



  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值