详细请看: https://pkg.jenkins.io/redhat-stable/
1、安装源:
sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
2、执行安装
yum install jenkins
3、启动
service jenkins start
4、进入jenkins
ip:8080