# 添加yum源
sudo wget --no-check-certificate -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
sudo yum -y upgrade
# 安装依赖
sudo yum install -y java-11-openjdk git
# 安装Jenkins
sudo yum install -y jenkins
sudo systemctl daemon-reload
# 启动并查看状态
sudo systemctl enable jenkins
sudo systemctl start jenkins
sudo systemctl status jenkins
06-25
891
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
10-16
213
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)