推荐使用war包方式安装,首先当然是安装Tomcat,Centos 7 JDK、Tomcat9 安装并配置,请查看这篇文章。
安装
- 下载war包
wget https://mirrors.tuna.tsinghua.edu.cn/jenkins/war-stable/2.46.1/jenkins.war
- 移动至Tomcat 的WebApps目录
mv jenkins.war /usr/local/apache-tomcat-9.0.0.M18/webapps/
- 启动或重启Tomcat(如果已经启动则不必)
systemctl start tomcat //or systemctl restart tomcat
4.初次访问并配置jenkinshttp://192.168.1.161:8080/jenkins/
done.
原文链接:https://www.f2er.com/centos/377919.html