CentOS7 Jenkins安装

CentOS7 Jenkins安装

CentOS7 Jenkins安装

Download

  • Jenkins下载apache-tomcat-8.0.18.tar.gz

Install

  • 安装

上传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

posted on 2015-02-28 20:01  天魂无双  阅读(5128)  评论(0编辑  收藏  举报

导航