Jenkins快速安装

  • A+
所属分类:自动化运维

1、安装JAVA,版本8.0以上

yum -y install java

2、下载repo源

wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins.io/redhat-stable/jenkins.repo


3、导入密钥

rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key

4、yum -y install jenkins
yum -y install xorg-x11-server-Xvfb

5、修改配置

vim /etc/sysconfig/jenkins
JENKINS_USER="jenkins"
JENKINS_PORT ="8080"

6、添加用户,设置权限

chown -R jenkins.jenkins /var/lib/jenkins/
chown -R jenkins.jenkins /var/log/jenkins/

systemctl start jenkins && systemctl enable jenkins

登录 http://x.x.x.x:8080

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: