1、配置源
sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo --no-check-certificate
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
2、安装Jenkins
yum -y install jenkins
如上图可以看到公钥未安装的提示,执行如下命令跳过公钥验证
yum install jenkins -y --nogpgcheck?
启动jenkins(如Java版本低则需升级Java版本)
systemctl start jenkins
查看jenkins状态
systemctl status jenkins.service
3、配置jenkins 查看密码cat /var/lib/jenkins/secrets/initialAdminPassword
选择安装推荐的插件
设置管理员,可以使用admin用户继续
配置完成