標籤:
【環境準備】
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.rpm
2> 安裝git
# yum install git
3> 下載gitlab-installer.sh安裝指令碼
# git clone https://github.com/mattias-ohlsson/gitlab-installer.git
4> 執行安裝指令碼
# cd gitlab-installer/
# ./gitlab-install-el6.sh
等待指令碼執行完畢後,會提示如下資訊(比如Server主機名稱為:heydevops-node-2):
01 |
### Done ######################################## |
03 |
# You have your MySQL root password in this file: |
04 |
# /config/database.yml |
06 |
# Point your browser to: |
07 |
# http://heydevops-node-2 (or: http://[host-ip]) |
08 |
# Default admin username: [email protected] |
09 |
# Default admin password: 5iveL!fe |
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了,登陸介面如下:
原文連結:http://blog.csdn.net/yanjiangbo/article/details/39154573
(轉)CentOS下一鍵安裝GitLab