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