Jenkins配置 官網地址: https: //jenkins.io/download/ 選擇須要的版本進行下載 [root@localhost ~]# cd /usr/local/src [root@localhost src]# rz /* 若是下載的是rpm */ [root@localhost src]# rpm -ivh jenkins-2.7.4-1.1.noarch.rpm #查詢下載的包相關文件存放的路徑 [root@localhost src]# rpm -ql jenkins-2.7.4-1.1.noarch.rpm #把Java放入Jenkins的配置文件 [root@frankie ~]# vi /etc/init.d/jenkins //找到 /etc/alternatives/java /usr/lib/jvm/java-1.6.0/bin/java /usr/lib/jvm/jre-1.6.0/bin/java /usr/lib/jvm/java-1.7.0/bin/java /usr/lib/jvm/jre-1.7.0/bin/java /usr/lib/jvm/java-1.8.0/bin/java /usr/lib/jvm/jre-1.8.0/bin/java /usr/bin/java /usr/local/jdk1.8/bin/java <-- 加入本身配置的Java路徑 #啓動Jenkins [root@frankie ~]# /etc/init.d/jenkins start #進入tomcat的webapps路徑看看Jenkins是否已經有Jenkins [root@frankie ~]# cd /usr/local/tomcat/webapps/ #沒有的話,就連接 [root@frankie ~]# ln -s /usr/lib/jenkins/jenkins.war jenkins.war #而後用Tomcat去啓動Jenkins,它就會自動生成文件 [root@frankie ~]# curl -I localhost:8080/jenkins |