centos安装jenkins

jenkins官网:https://pkg.jenkins.io/redhat-stable/

 

步骤:

1.sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo --no-check-certificate

2.sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key

3.yum install fontconfig java-11-openjdk (安装JDK)

4.yum install jenkins

5.配置端口

vi /etc/syscofig/jenkins

修改端口如下:
JENKINS_PORT="8888"
 
6.启动命令:systemctl start jenkins
posted @ 2022-10-19 00:54  洋三岁  阅读(23)  评论(0编辑  收藏  举报
友情链接: 梦想农夫