本文tomcat服務器地址爲http://192.168.1.2:8081,安裝路徑爲/tomcat/apache-tomcat-7.0.79/web
步驟1:在/tomcat/apache-tomcat-7.0.79/webapps下建立jenkins目錄並將下載好jenkins的war包移動到該目錄下apache
[root@model ~]# mkdir /tomcat/apache-tomcat-7.0.79/webapps/jenkins [root@model ~]# [root@model ~]# mv ~/jenkins.war /tomcat/apache-tomcat-7.0.79/webapps/jenkins [root@model ~]#
步驟2:移動到jenkins目錄並將war包解壓到該目錄瀏覽器
[root@model ~]# cd /tomcat/apache-tomcat-7.0.79/webapps/jenkins [root@model ~]# jar -xvf jenkins.war
步驟3:啓動tomcattomcat
[root@model ~]# cd /tomcat/apache-tomcat-7.0.79/bin [root@model bin]# ./startup.sh
步驟4:在Windows客戶端瀏覽器輸入http://192.168.1.2:8081/jenkins,進入tomcat啓動界面服務器
進入服務器端獲取密碼:app
[root@model secrets]# [root@model secrets]# cat /root/.jenkins/secrets/initialAdminPassword 4586117563faa44ea9fc0088efac417b68c [root@model secrets]#
jenkins安裝完成~webapp