1、配置yum源下载:
wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
2、导入rpm密钥:
rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
3、安装:
yum -y install jenkins java
4、启动服务:
systemctl start jenkins
5、访问网址:
xx.xx.xx.xx:8080
/usr/lib/jenkins/jenkens.war // Jenkins项目
/etc/sysconfig/jenkins 为rpm和yum安装的jenkins的配置文件,里面有启动端口等信息,默认是8080