码迷,mamicode.com
首页 > 其他好文 > 详细

CentOS7系统下搭建Jenkins环境

时间:2016-03-16 19:04:38      阅读:156      评论:0      收藏:0      [点我收藏+]

标签:

1. 安装JDK

yum -y install java

2.安装Ant

添加JPackage源

yum -y install wget
wget http://www.jpackage.org/jpackage50.repo -P /etc/yum.repos.d/

安装Ant

yum -y install ant

3.安装Maven

yum -y install maven

4.安装Tomcat

yum -y install tomcat

设置tomcat编码为UTF-8

# vi /etc/tomcat/server.xml

<Connector port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" URIEncoding="UTF-8" />

5.安装Jenkins

方法1:

下载jenkins.war到webapps目录下

wget http://mirrors.jenkins-ci.org/war-stable/latest/jenkins.war -P /var/lib/tomcat/webapps/

设置tomcat自启动,并启动tomcat

chkconfig tomcat on
service tomcat start

访问Jenkins主页  http://localhost:8080/jenkins

方法2:

sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo
sudo rpm --import http://pkg.jenkins-ci.org/redhat-stable/jenkins-ci.org.key
yum install jenkins

设置jenkins自启动,并启动jenkins

chkconfig jenkins on
service jenkins start

访问Jenkins主页  http://localhost:8080

CentOS7系统下搭建Jenkins环境

标签:

原文地址:http://www.cnblogs.com/edward2013/p/5284503.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!