在我的CentOS 7 server
上安装了Java
和Jenkins
之后。我试图启动Jenkins,我得到了下面的错误信息。
jenkins.service的作业失败。有关详细信息,请参阅“systemctl status jenkins.service”和“journalctl -xe”。
当我运行“systemctlstatusjenkins.service”来查看问题所在时,我得到了以下输出
● jenkins.service - Jenkins Continuous Integration Server
Loaded: loaded (/usr/lib/systemd/system/jenkins.service; disabled; vendor preset: disabled)
Active: failed (Result: start-limit) since Thu 2022-08-18 14:23:02 UTC; 20s ago
Process: 8847 ExecStart=/usr/bin/jenkins (code=exited, status=0/SUCCESS)
Main PID: 8847 (code=exited, status=0/SUCCESS)
Aug 18 14:23:02 localhost.localdomain systemd[1]: Failed to start Jenkins Continuous Integration Server.
Aug 18 14:23:02 localhost.localdomain systemd[1]: Unit jenkins.service entered failed state.
Aug 18 14:23:02 localhost.localdomain systemd[1]: jenkins.service failed.
Aug 18 14:23:02 localhost.localdomain systemd[1]: jenkins.service holdoff time over, scheduling restart.
Aug 18 14:23:02 localhost.localdomain systemd[1]: Stopped Jenkins Continuous Integration Server.
Aug 18 14:23:02 localhost.localdomain systemd[1]: start request repeated too quickly for jenkins.service
Aug 18 14:23:02 localhost.localdomain systemd[1]: Failed to start Jenkins Continuous Integration Server.
Aug 18 14:23:02 localhost.localdomain systemd[1]: Unit jenkins.service entered failed state.
Aug 18 14:23:02 localhost.localdomain systemd[1]: jenkins.service failed.
不太确定如何解决这个问题。有人有解决方案吗?谢谢
1条答案
按热度按时间mspsb9vt1#
请使用
journalctl -xe
获取更详细的日志。你也可以运行Jenkins在交互模式,看看为什么它无法启动像-
您可以在/usr/bin/jenkins文件中获得命令详细信息。