1截汪、下war包
wget?https://pkg.jenkins.io/redhat-stable/jenkins-2.7.1-1.1.noarch.rpm
2、裝包
sudo rpm -ih?jenkins-2.7.1-1.1.noarch.rpm
3植捎、配置
端口號:vi /etc/sysconfig/jenkins衙解,默認的8080改成想要的就行
用戶:vi /etc/sysconfig/jenkins,將JENKINS_USER="jenkins"調(diào)整為JENKINS_USER="root"(高權(quán)限用戶)
查java路徑:which java
配置java路徑:sudo vim /etc/init.d/jenkins焰枢,candidates里面加上即可
4丢郊、使用
啟動服務(wù):sudo service jenkins start
重啟服務(wù):sudo service jenkins restart
5盔沫、卸載
service jenkins stop
yum clean all
yum -y remove jenkins