首页 > 系统相关 >使用yum安装jenkins启动时候报错

使用yum安装jenkins启动时候报错

时间:2023-01-02 14:02:29浏览次数:44  
标签:25 systemd java yum jenkins 报错 Oct localhost

环境说明

centos7
jenkins 2.374-1.1
maven 3.6.0
Java 1.8.0_181

报错说明

Oct 25 00:37:58 localhost systemd: Failed to start Jenkins Continuous Integration Server.
Oct 25 00:37:58 localhost systemd: Unit jenkins.service entered failed state.
Oct 25 00:37:58 localhost systemd: jenkins.service failed.
Oct 25 00:37:58 localhost systemd: jenkins.service holdoff time over, scheduling restart.
Oct 25 00:37:58 localhost systemd: Stopped Jenkins Continuous Integration Server.
Oct 25 00:37:58 localhost systemd: Starting Jenkins Continuous Integration Server...

解决方法

[root@localhost ~]# java -jar /usr/share/java/jenkins.war
Running with Java 8 from /usr/local/java/jre, which is older than the minimum required version (Java 11).
Supported Java versions are: [11, 17]
See https://jenkins.io/redirect/java-support/ for more information.
需要安装java 11版本以上,连接如下:
下载链接:https://www.oracle.com/java/technologies/downloads/#java11

注释说明:新版jenkins最低支持需java 11版本以上。

标签:25,systemd,java,yum,jenkins,报错,Oct,localhost
From: https://blog.51cto.com/feko/5983665

相关文章