1.手动下载http://mirrors.jenkins-ci.org/war/latest/拖过去
2.到达tomcat的目录
cd /usr/local/src/apache-tomcat-8.5.37
3.创建文件夹
cd ./webapps
mkdir jenkins
4.拖文件过这个目录,然后执行并解压
jar -xvf jenkins.war
5.重新启动tomca
../../bin/catalina.sh run
(-bash: ../../bin/catalina.sh: Permission denied)
如果提示上边,说明权限不足。则运行:chmod +x *.sh
6.打开http://***你的IP**:8080/jenkins/
cat /root/.jenkins/secrets/initialAdminPassword 找到初始密码