// 安裝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
// 導(dǎo)入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/