安装jenkins
1,添加jenkins源
wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key
2,yum下载jenkins
yum install jenkins
3,设置jenkins端口
vim /etc/sysconfig/jenkins
修改文件中JENKINS_PORT端口为9000
4,防火墙添加例外
vim /etc/sysconfig/iptables
-A INPUT -m state --state NEW -m tcp -p tcp --dport 9000 -j ACCEPT
5,启动jenkins
service jenkins start
6,密码默认在/var/lib/jenkins/secrets/下的 initialAdminPassword