1、新增Jenkins倉庫
sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
2、安裝Jenkins
sudo yum install jenkins
3、安裝jdk11
yum install -y java-11-openjdk-devel.x86_64
4、啟動Jenkins服務
sudo systemctl start jenkins
5、配置系統開機啟動
sudo systemctl enable jenkins