安裝

添加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

如果沒(méi)有java的話要安裝java

sudo yum install java

啟動(dòng)和停止

sudo service jenkins start/stop/restart
sudo chkconfig jenkins on

jenkins的默認(rèn)設(shè)置

  • Jenkins會(huì)隨系統(tǒng)啟動(dòng)而啟動(dòng)。詳情參照/etc/init.d/jenkins

  • Jenkins會(huì)創(chuàng)建一個(gè)用戶叫做jenkins, 如果你修改了user,則要修修改所屬者:/var/log/jenkins,

    網(wǎng)友評(píng)論