1、安装 epel-release
yum -y install epel-release
2、安装 daemonize
yum -y install daemonize
3、安装JDK
yum install -y java-1.8.0-openjdk
4、下载安装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
5、安装Jenkins
yum install -y jenkins
6、启动Jenkins服务
sudo service jenkins start
7、访问Jenkins:http://ip:8080
8、获取解锁密码
cat /var/lib/jenkins/secrets/initialAdminPassword
复制密码到页面输入框,点击继续
选择“安装推荐的插件” 进行安装
9、创建登录账户
配置完成后界面