1.安装java
yum install -y java-1.8.0-openjdk
2.下载安装Jenkins源:
wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat/jenkins.repo rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key yum install -y jenkins
3.更改默认端口8080为8081
vim /etc/sysconfig/jenkins
4.启动
sudo service jenkins start
5.在浏览器输入http://IP:8081,查看密码
cat /var/lib/jenkins/secrets/initialAdminPassword
6. 选择插件
7.创建账户
8.完成