卸載
rpm -e jenkins
find / -iname jenkins | xargs -n 1000 rm -rf
安裝1
1脐帝、安裝JDK
yum install -y java
2飘千、安裝jenkins
添加Jenkins庫到y(tǒng)um庫例诀,Jenkins將從這里下載安裝揣非。
1 wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
2 rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
3 yum install -y jenkins
安裝2
如果不能安裝就到官網(wǎng)下載jenkis的rmp包翔忽,官網(wǎng)地址(http://pkg.jenkins-ci.org/redhat-stable/)
1 wget http://pkg.jenkins-ci.org/redhat-stable/jenkins-2.7.3-1.1.noarch.rpm
2 rpm -ivh jenkins-2.7.3-1.1.noarch.rpm
配置jenkis的端口
vi /etc/sysconfig/jenkins
啟動
啟動jenkins
sysctmctl start jenkins
關(guān)閉防火墻
systemctl stop firewalld
初始密碼
vi /var/lib/jenkins/secrets/initialAdminPassword
異常
解決步驟記錄(未解決)
vi /var/lib/jenkins/config.xml
使用方法1進行安裝瘪吏,未見上述異常