安装jenkins
有网络条件的
配置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.****.net/download/rockstics/58682220
然后
yum install jenkins-2.163-1.1.noarch.rpm
#或者
rpm -ivh jenkins-2.163-1.1.noarch.rpm
安装Java
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
启动Jenkins
systemctl start jenkins
访问web页面
地址:http://IP:8080