sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat/jenkins.repo
sudo rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key
yum install jenkins
Jenkins官方源:http://pkg.jenkins-ci.org/redhat/
/etc/init.d/jenkins start
chkconfig jenkins on
# http://192.168.0.103:8080/
# 查看默认密码
cat /var/lib/jenkins/secrets/initialAdminPassword