systemctl start jenkins执行命令之后报错

报错阐述

在安装好jenkins和修改了jenkins配置文件之后,重启jenkins时报错,报错内容如下:

Job for jenkins.service failed because the control process exited with error code. See "systemctl status jenkins.service" and "journalctl -xe" for details.

执行了 systemctl start 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 日 2022-12-25 18:20:00 CST; 9s ago
  Process: 18160 ExecStart=/usr/bin/jenkins (code=exited, status=1/FAILURE)
 Main PID: 18160 (code=exited, status=1/FAILURE)

12月 25 18:20:00 VM-20-11-centos systemd[1]: jenkins.service: main process exited, code=exited, status=1/FAILURE
12月 25 18:20:00 VM-20-11-centos systemd[1]: Failed to start Jenkins Continuous Integration Server.
12月 25 18:20:00 VM-20-11-centos systemd[1]: Unit jenkins.service entered failed state.
12月 25 18:20:00 VM-20-11-centos systemd[1]: jenkins.service failed.
12月 25 18:20:00 VM-20-11-centos systemd[1]: jenkins.service holdoff time over, scheduling restart.
12月 25 18:20:00 VM-20-11-centos systemd[1]: Stopped Jenkins Continuous Integration Server.
12月 25 18:20:00 VM-20-11-centos systemd[1]: start request repeated too quickly for jenkins.service
12月 25 18:20:00 VM-20-11-centos systemd[1]: Failed to start Jenkins Continuous Integration Server.
12月 25 18:20:00 VM-20-11-centos systemd[1]: Unit jenkins.service entered failed state.
12月 25 18:20:00 VM-20-11-centos systemd[1]: jenkins.service failed.

原因解析:
我报错的原因是jenkins的版本和java的版本不匹配导致的,更换了jenkins版本之后就可以了。

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值