配置yum 源
sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key yum install epel-release # repository that provides 'daemonize' yum install jenkins
点这里下载安装包
https://download.csdn.net/download/rockstics/58682220
然后
yum install jenkins-2.163-1.1.noarch.rpm #或者 rpm -ivh jenkins-2.163-1.1.noarch.rpm
yum install java-1.8.0-openjdk-devel
vim /etc/sysconfig/jenkins > JENKINS_HOME="/data/jenkins"
mkdir -p /data/jenkins chown jenkins:jenkins /data/jenkins
systemctl start jenkins
地址:http://IP:8080