报错阐述
在安装好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
命令之后,出现的报错信息如下所示:文章来源:https://www.toymoban.com/news/detail-593321.html
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版本之后就可以了。文章来源地址https://www.toymoban.com/news/detail-593321.html
到了这里,关于systemctl start jenkins执行命令之后报错的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!