1.安装JDK
rpm -e rpm -qa|grep openjdk
--nodeps
rpm -ivh jdk-8u131-linux-x64.rpm
2.安装tomcat
mkdir /jenkins
cd /jenkins
tar -xvf apache-tomcat-8.5.14.tar.gz
mv apache-tomcat-8.5.14/ tomcat/
3.拷贝jenkins的war包
mv jenkins.war /jenkins/tomcat/webapp
4.启动tomcat
/jenkins/tomcat/bin/startup.sh
5.配置Jenkins
访问http://ip:8080/jenkins
根据信息获取密码解锁Jenkins
进行配置