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版本之后就可以了。

你可能感兴趣的:(知识储备,报错,jenkins,运维)