拉取库的配置到本地对应文件

sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo

jenkins.repo内容是这样: [jenkins] name=Jenkins-stable  url=http://pkg.jenkins.io/redhat-stable gpgcheck=1

导入公钥

sudo rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key

3.安装jenkins
#-y参数:回答全部问题为是

sudo yum -y install jenkins

基本安装完成。
顺便贴一下LTS安装指令,只是稍有不同:

sudo wget
收藏 打印