ubuntu 14.04中安裝Jenkins並更改jenkins目錄
阿新 • • 發佈:2019-02-15
來源:http://blog.csdn.net/fenglailea/article/details/25919367
0.先安裝JAVA
1.安裝
[plain] view plain copy print?- wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
-
sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list'
- sudo apt-get update -y
- sudo apt-get install jenkins -y
2.安裝檔案位置
[plain] view plain copy print?- 安裝目錄:/var/lib/jenkins
- 日誌目錄:/var/log/jenkins/jenkins.log
3.啟動/停止
[plain] view plain copy print- sudo /etc/init.d/jenkins start
- sudo /etc/init.d/jenkins stop
3.啟動/停止
[plain] view plain copy print?- sudo /etc/init.d/jenkins start
- sudo /etc/init.d/jenkins stop
4.訪問(當前IP)
[plain] view plain copy print?-
http://192.168.1.100:8080/
5.更改jenkins目錄
print?-
chown -R jenkins:jenkins /home/luchang/jenkins
- sudo vi /etc/profile 中新增 export JENKINS_HOME=/home/luchang/jenkins
- sudo service jenkins restart