centos6.5下安装配置hudson

前端之家收集整理的这篇文章主要介绍了centos6.5下安装配置hudson前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

### hudson介绍

Hudson是Jenkins的前身,是基于Java开发的一种持续集成工具,用于监控程序重复的工作

### 安装maven


#### 下载包

```
wgethttp://mirror.bit.edu.cn/apache/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
```

#### 安装

```
[root@ambari~]#tar-xfapache-maven-3.3.9-bin.tar.gz
[root@ambari~]#mvapache-maven-3.3.9/usr/local/data/apache-maven
```


#### 配置环境变量

```
[root@ambari~]#vim/etc/profile
exportMAVEN_HOME=/usr/local/data/apache-maven
exportPATH=$PATH:$MAVEN_HOME/bin
[root@ambari~]#source/etc/profile
[root@ambari~]#mvn--version
ApacheMaven3.3.9(bb52d8502b132ec0a5a3f4c09453c07478323dc5;2015-11-11T00:41:47+08:00)
Mavenhome:/usr/local/data/apache-maven
Javaversion:1.8.0_45,vendor:OracleCorporation
Javahome:/usr/local/data/jdk1.8.0_45/jre
Defaultlocale:en_US,platformencoding:UTF-8
OSname:"linux",version:"2.6.32-431.el6.x86_64",arch:"amd64",family:"unix"
```


### 安装tomcat


#### 下载包

```
wgethttp://archive.apache.org/dist/tomcat/tomcat-7/v7.0.29/bin/apache-tomcat-7.0.29.tar.gz
```

#### 安装

```
[root@ambari~]#tar-xfapache-tomcat-7.0.29.tar.gz
[root@ambari~]#mvapache-tomcat-7.0.29/usr/local/data/apache-tomcat
```

### 安装hudson

#### 下载包

```
[root@ambari~]#wgethttp://ftp.kaist.ac.kr/eclipse/hudson/war/hudson-3.0.1.war
```

#### 安装配置

```
[root@ambari~]#cphudson-3.0.1.war/usr/local/data/apache-tomcat/webapps/
[root@ambari~]#cd/usr/local/data/apache-tomcat/webapps&&mvhudson-3.0.1.warhudson.war
[root@ambari~]#cd/usr/local/data/apache-tomcat/conf
[root@ambariconf]#vimserver.xml
<Connectorport="8090"protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443"/>
```


#### 启动hudson

```
[root@ambari~]#/usr/local/data/apache-tomcat/bin/catalina.shstart
UsingCATALINA_BASE:/usr/local/data/apache-tomcat
UsingCATALINA_HOME:/usr/local/data/apache-tomcat
UsingCATALINA_TMPDIR:/usr/local/data/apache-tomcat/temp
UsingJRE_HOME:/usr/local/data/jdk1.8.0_45/
UsingCLASSPATH:/usr/local/data/apache-tomcat/bin/bootstrap.jar:/usr/local/data/apache-tomcat/bin/tomcat-juli.jar
```


#### 访问

http://192.168.1.11:6060/hudson/

猜你在找的CentOS相关文章