1、下载jenkins的repo文件
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
2、安装jenkins
yum install jenkins #等待安装时间较长,约25min
rpm -ql Jenkins
3、启动
nohup java -jar /usr/lib/jenkins/jenkins.war --httpPort=9001 –dJenkins >> /home/zhongyi/logs/jenkins/nohup.log &
4、修改文件权限
chown -R sjlin:sjlin jenkins/