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

CENTOS 安装 jenkins

时间:2015-09-05 19:31:12      阅读:210      评论:0      收藏:0      [点我收藏+]

标签:

目录

一 环境

  1. 系统环境

  2. 软件环境

  3. 软件版本

二 安装

   1.下载

    2. 安装

三 验证


正文

一 环境

1.1 系统环境 CENTOS 6.5 64位

[root@gtproxy-pa-1 conf]# lsb_release -a
LSB Version:    :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: CentOS
Description:    CentOS release 6.6 (Final)
Release:        6.6
Codename:       Final
[root@gtproxy-pa-1 conf]#

1.2 软件环境

JDK 1.6,TOMCAT 7.0.63

1.3 软件版本

Jenkins v1.596

二 安装 

2.1 下载

官网 http://mirrors.jenkins-ci.org/war-stable/1.596.2/

百度网盘:链接:http://pan.baidu.com/s/1gd6iM7h 密码:2y3n

2.2 安装 

2.2.1 依赖软件安装

http://my.oschina.net/u/234018/blog/498118

http://my.oschina.net/u/234018/blog/501367

2..2.2 jenkins 安装

      直接将jenkins.war cp 到apache-tomcat-7.0.63/webapps 目录下

[root@gtproxy-pa-1 webapps]# pwd
/usr/local/apache-tomcat-7.0.63/webapps
[root@gtproxy-pa-1 webapps]# ll
total 66644
drwxr-xr-x 14 root root     4096 Aug 25 09:50 docs
drwxr-xr-x  7 root root     4096 Aug 25 09:50 examples
drwxr-xr-x  5 root root     4096 Aug 25 09:50 host-manager
drwxr-xr-x 16 root root     4096 Aug 30 11:28 jenkins
-rw-r--r--  1 root root 68217618 Aug 25 14:58 jenkins.war
drwxr-xr-x  5 root root     4096 Aug 25 09:50 manager
drwxr-xr-x  3 root root     4096 Aug 25 09:50 ROOT
[root@gtproxy-pa-1 webapps]#

2.2.3 配置环境变量(个人感觉可有可无,尚未测试验证)

/etc/profile 添加 

export JENKINS_HOME=/usr/local/apache-tomcat-7.0.63/webapps/jenkins


2.2.4 重启tomcat

三 验证

访问下面网址

http://x.x.x.x:8080/jenkins/

PS: jenkins 对tomcat 版本,jdk 版本都有依赖。笔者刚开始版本不兼容,走了半天弯路。


CENTOS 安装 jenkins

标签:

原文地址:http://my.oschina.net/u/234018/blog/501372

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