CICD: CentOS 8 安装 Jenkins
作者:互联网
1. 先决条件
1.1. 安装Java
1.2. 安装git
yum install git
- 检查
git --version
2. 安装Jenkins
2.1. 下载密钥
sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
2.2. 添加到系统密钥中
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
2.3. 安装Jenkins
yum install jenkins
2.4. 配置监听端口
vi /etc/sysconfig/jenkins
#监听端口
JENKINS_PORT="8080"
2.5. 启动Jenkins
service jenkins restart
2.6. 检查
systemctl status jenkins
标签:git,CentOS,CICD,yum,io,Jenkins,jenkins,安装 来源: https://blog.csdn.net/shuaihj/article/details/122815525