// 安装jdk
sudo yum install java-1.8.0-openjdk-devel
//指定源
sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
// 导入key
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
// yum install
sudo yum install jenkins
// 安装完成后启动Jenkins
sudo systemctl start jenkins
// 查看是否启动成功
systemctl status jenkins
参考:
https://archives.jenkins-ci.org/redhat-stable/
https://linuxize.com/post/how-to-install-jenkins-on-centos-7/
网友评论