https://www.cnblogs.com/hlwa/articles/14074177.html
版本 tomcat 8.5.66 jenkins2.296
1.把tomcat的包拖到data目录下,解压 tar -zxvf apache-tomcat-8.5.66.tar.gz
2.下载jenkins wget http://mirrors.jenkins-ci.org/war/latest/jenkins.war
mv jenkins.war apache-tomcat-8.5.66/webapps/(也可以手动把jenkins.war拖到tomcat的webapps目录下)
3.配置环境变量
4.启动/data/apache-tomcat-9.0.19/bin/startup.sh(也可以cd到tomcat的bin目录下./startup.sh)
查看日志tail -f /data/apache-tomcat-9.0.19/logs/catalina.out
5用浏览器打开http://159.138.171.70:8080/jenkins/
6 jenkins的密码在/data/apache-tomcat-8.5.66/webapps/secrets/initialAdminPassword里面
7.如果进来是空白打开http://159.138.171.70:8080/jenkins/configureSecurity/