centos install jenkins

prepare: install JDK

install

1
wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
1
rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key

如果不能安装就到官网下载jenkis的rmp包,官网地址(http://pkg.jenkins-ci.org/redhat-stable/)
一. 官方下载地址:https://jenkins.io/download/
二. 镜像下载地址:http://mirrors.jenkins-ci.org/

1
2
3
 wget  http://mirror.serverion.com/jenkins/redhat-stable/jenkins-2.235.1-1.1.noarch.rpm
rpm -ivh jenkins-2.222.3-1.1.noarch.rpm
yum install -y jenkins-2.222.3-1.1.noarch.rpm
1
yum install -y jenkins
阅读更多