您的位置:首页 > 运维架构 > Linux

CentOS下一键安装GitLab

2014-12-26 18:02 435 查看
【环境准备】
OS: CentOS 6.3 x86_64
【安装要求】
如果有条件,提供一台全新的Server(仅仅只安装了一些系统的软件包),可以直接使用一键安装脚本(gitlab-install-el6.sh)来搭建,非常容易,只需要5步骤,如下:1> 安装EPEL扩展源
切换到root用户
$ sudo -i
# rpm -ivh http://fr2.rpmfind.net/linux/epel/6/x86_64/epel-release-6-8.noarch.rpm2> 安装git
# yum install git3> 下载gitlab-installer.sh安装脚本
# git clone https://github.com/mattias-ohlsson/gitlab-installer.git4> 执行安装脚本
# cd gitlab-installer/
# ./gitlab-install-el6.sh等待脚本执行完毕后,会提示如下信息(比如Server主机名为:heydevops-node-2):
01
###
Done ########################################
02
#
03
#
You have your MySQL root password in this file:
04
#
/config/database.yml
05
#
06
#
Point your browser to:
07
# http://heydevops-node-2 (or: http://[host-ip])
08
#
Default admin username: admin@local.host
09
#
Default admin password: 5iveL!fe
10
#
11
#################################################
5> 将脚本的Ruby版本指向到ruby-1.9.3-p392
# vim /home/git/gitlab-shell/bin/gitlab-shell
1
#!/usr/local/rvm/bin/ruby-1.9.3-p392
接着,就可以通过 http://[host-ip] ([host-ip]是Server的IP)来访问GitHub了,登陆界面如下:

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: