1. 安装
wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
yum install -y jenkins --nogpgcheck
# service jenkins start/stop/restart
service jenkins start
# 查看进程
ps -ef | grep jenkins
如果关闭防火墙,此步奏略
# 开放8080端口
firewall-cmd --add-port=8080/tcp --permanent
firewall-cmd --reload
firewall-cmd --permanent --query-port=8080/tcp
2. 配置
浏览器访问ip:8080/pluginManager/advanced,将页面下拉到底部将升级站点的https改为http之后提交
重启jenkins
方法一:8080/restart
方法二:service jenkins restart