部署jenkins有两种方法:1yum、2官网下载war包本地配置好环境变量通过java方式启动
yum方式如下
1、
sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat/jenkins.repo
或sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat/jenkins.repo --no-check-certificate
![](https://i-blog.csdnimg.cn/blog_migrate/f08ae81c21ba384693a0bb106b45188d.png)
编辑
2、sudo rpm --import https://pkg.jenkins.io/redhat/jenkins.io-2023.key
3、yum install fontconfig java-11-openjdk -y yum install jenkins -y
4、启动动作
默认端口8080
5、登入动作
cat /var/lib/jenkins/secrets/initialAdminPassword