環境搭建--CentOS7安裝Jenkins
阿新 • • 發佈:2019-01-23
CentOS7安裝Jenkins
安裝指令
wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo2 rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key3 yum install -y jenkins
配置檔案
vi /etc/sysconfig/jenkins
vim /etc/init.d/jenkins
開啟服務
service jenkins start
防火牆開放
firewall-cmd --zone=public --add-port=9999/tcp --permanent
重啟防火牆
firewall-cmd --reload
檢視自己的伺服器ip
Linux:ifconfig
Window:ipconfig
檢視密碼
/var/lib/jenkins/secrets/initialAdminPassword