yum 安装 jenkins

 
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

 

 

 

posted @ 2024-05-07 16:44  苦逼yw  阅读(174)  评论(0编辑  收藏  举报