安装jenkins


mkdir /jenkins && cd /jenkins
yum -y install java-1.8.0-openjdk-headless-1.8.0.242.b08-0.el7_7.x86_64 java-1.8.0-openjdk-1.8.0.242.b08-0.el7_7.x86_64 javapackages-tools-3.4.1-11.el7.noarch java-1.8.0-openjdk-devel-1.8.0.242.b08-0.el7_7.x86_64
wget http://mirrors.jenkins.io/war-stable/latest/jenkins.war
wget http://ftp.cuhk.edu.hk/pub/packages/apache.org/tomcat/tomcat-9/v9.0.34/bin/apache-tomcat-9.0.34.tar.gz
tar zxf apache-tomcat-9.0.34.tar.gz 
mv apache-tomcat-9.0.34 tomcat
rm -rf ./tomcat/webapps/ROOT/\*
unzip jenkins.war -d ./tomcat/webapps/ROOT/
./tomcat/bin/startup.sh
cat /root/.jenkins/secrets/initialAdminPassword
http://localhost:8080
    原文作者:薛文昌
    原文地址: https://blog.51cto.com/982439641/2489811
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞