安裝
添加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.key sudo 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,/var/lib/jenkins,/var/cache/jenkins
- 如果遇到問題,查看日志/var/log/jenkins/jenkins.log
- 配置文件/etc/sysconfig/jenkins
- 默認啟用8080
打開和關(guān)閉防火墻
firewall-cmd
網(wǎng)友評論