yum 安裝 jenkins

苦逼yw發表於2024-05-07
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

相關文章