安裝
添加yum repos,然后安裝
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo sudo rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.keysudo yum install jenkins
如果沒有java的話要安裝java
sudo yum install java
啟動和停止
sudo service jenkins start/stop/restart sudo chkconfig jenkins on
jenkins的默認設(shè)置
Jenkins會隨系統(tǒng)啟動而啟動。詳情參照
/etc/init.d/jenkins
Jenkins會創(chuàng)建一個用戶叫做
jenkins
, 如果你修改了user,則要修修改所屬者:/var/log/jenkins
,網(wǎng)友評論