六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 598|回复: 0

CENTOS 安装 jenkins

[复制链接]
 楼主| 发表于 2016-3-7 17:46:25 | 显示全部楼层 |阅读模式
CENTOS 安装 jenkins
目录
一 环境

  • 系统环境

  • 软件环境

  • 软件版本

二 安装
   1.下载
    2. 安装
三 验证

正文
一 环境
1.1 系统环境 CENTOS 6.6 64位
?
1
2
3
4
5
6
7
[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 目录下
?
1
2
3
4
5
6
7
8
9
10
11
12
[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 添加
?
1
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 版本都有依赖。笔者刚开始版本不兼容,走了半天弯路。

http://my.oschina.net/u/234018/blog/501372
CENTOS 安装 jenkins
该会员没有填写今日想说内容.
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表