轉載來自:http://wiki.jikexueyuan.com/project/linux-in-eye-of-java/Jenkins-Install-And-Settings.htmlhtml
Jenkins 安裝java
/opt
目錄下建立一個目錄 setups
用來存放各類軟件安裝包;在 /usr
目錄下建立一個 program
用來存放各類解壓後的軟件包,下面的講解也都是基於此習慣EPEL、RepoForge
,若是你出現 yum install XXXXX
安裝不成功的話,頗有可能就是你沒有相關源,請查看我對源設置的文章wget http://mirrors.jenkins-ci.org/war/latest/jenkins.war
(大小:61 M)
/usr/program/tomcat8/webapps
mv jenkins.war ROOT.war
find / -name .jenkins
,我這邊獲得的結果是:/root/.jenkins
CATALINA_OPTS
進行設置:
CATALINA_OPTS="-server -Xms528m -Xmx528m -XX:PermSize=256m -XX:MaxPermSize=358m" export CATALINA_OPTS
CATALINA_OPTS="-server -DJENKINS_HOME=/root/.jenkins -Xms528m -Xmx528m -XX:PermSize=256m -XX:MaxPermSize=358m" export CATALINA_OPTS
Jenkins 各個組件配置:linux
java.net.UnknownHostException
,能夠查看這篇文章:http://stackoverflow.com/questions/4969156/java-net-unknownhostexception