CentOS7安装Jenkins

wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
获取安装源

rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
导入公钥

yum install jenkins
安装Jenkins
按Y确认

vim /etc/sysconfig/jenkins
修改端口号8080为9090
JENKINS_PORT="9090"

firewall-cmd --zone=public --permanent --add-port=9090/tcp
firewall-cmd --reload
开放防火墙9090端口

service jenkins start
chkconfig jenkins on
启动Jenkins

访问http://192.168.1.13:9090/

猜你喜欢

转载自www.cnblogs.com/yjlch1016/p/8904227.html