# 添加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
1分钟快速安装 Jenkins
最新推荐文章于 2024-04-24 13:59:59 发布