标签:
CentOS7 Jenkins安装
上传RPM文件到/tmp目录下
cd /tmp
rpm -ivh jenkins-1.599-1.1.noarch.rpm
/etc/sysconfig/jenkins
JENKINS_PORT="9081"
JENKINS_AJP_PORT="9082"
设定开机启动
chkconfig jenkins on
新建文件/usr/lib/firewalld/services/jenkins.xml
<?xml version="1.0" encoding="utf-8"?>
<service>
<short>Jenkins</short>
<description>Jenkins</description>
<portprotocol="tcp"port="9081"/>
</service>
修改防火墙设定
firewall-cmd --permanent --add-service=jenkins
firewall-cmd --reload
标签:
原文地址:http://www.cnblogs.com/tjpanda88/p/4306147.html