【Linux】CentOS安装Jenkins

1.

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

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

sudo yum install -y jenkins

 

2.

稳定版本

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

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

sudo yum install -y jenkins

 

3.

wget https://prodjenkinsreleases.blob.core.windows.net/redhat/jenkins-2.213-1.1.noarch.rpm

sudo rpm -ivh jenkins-2.213-1.1.noarch.rpm

 

 

若遇报错:

Public key for jenkins-2.293-1.1.noarch.rpm is not installed

解决:

新增 --nogpgcheck 参数,实现不检查Public Key而强制安装, 命令如下:

sudo yum -y install jenkins --nogpgcheck

 

sudo yum install -y java

systemctl start jenkins

systemctl enable jenkins

 

wget 安装:

sudo yum -y install wget

 

posted on 2019-06-10 17:40  凌风子  阅读(342)  评论(0编辑  收藏  举报