(轉)CentOS下一鍵安裝GitLab

來源:互聯網
上載者:User

標籤:

【環境準備】
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 ########################################
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: [email protected]
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了,登陸介面如下:

原文連結:http://blog.csdn.net/yanjiangbo/article/details/39154573

(轉)CentOS下一鍵安裝GitLab

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.