gitlab搭建與使用

xiaodaiwang發表於2016-06-06

gitlab 安裝使用


    公司搬家,重新搭建程式碼庫,決定使用gitlab。其實很簡單,但是自己搞了好幾天,於是把過程記錄下來,大家一起交流學習,如有不足之處,歡迎指正。

    GitLab 是一個用於倉庫管理系統的開源專案。使用Git作為程式碼管理工具,並在此基礎上搭建起來的web服務,它整合了Github的視覺化功能,方便開發人員協同工作。

    進入主題:

      首先準備好Linux作業系統

    下載gitlab  下載地址:https://bitnami.com/stack/gitlab/installer

      下載過程較慢,可以做點其他的準備活動。

     安裝Git 

       軟體版本:git-2.3.1.tar.gz

    下載地址:https://www.kernel.org/pub/software/scm/git/

    編譯Git版本:

 首先安裝依賴(以下都是在root目錄下完成): 編譯時如果作業系統沒有安裝gcc,使用yum –y install gcc*

   yum -y install curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-devel 
  tar -zxvf git-2.3.1.tar.gz
  cd git-2.3.1
  make prefix=/usr/local all
  make prefix=/usr/local install

      安裝Gitlab

     下載完成後,我們開始安裝流程,命令如下:


 chmod u+x bitnami-gitlab-8.7.5-0-linux-x64-installer.run
 ./bitnami-gitlab-8.7.5-0-linux-x64-installer.run
      
    下面列出安裝流程:

Welcome to the Bitnami Gitlab Stack Setup Wizard.

----------------------------------------------------------------------------
Select the components you want to install; clear the components you do not want
to install. Click Next when you are ready to continue.

PhpPgAdmin [Y/n] :

GitLab : Y (Cannot be edited)

Is the selection above correct? [Y/n]:

----------------------------------------------------------------------------
Installation folder

Please, choose a folder to install Bitnami Gitlab Stack

Select a folder [/opt/gitlab-8.7.5-0]:

----------------------------------------------------------------------------
Create Admin account

Bitnami Gitlab Stack admin user creation

Email Address [user@example.com]: wangxiaodai@**.com

Login [user]: xiaodai

Password :
Please confirm your password :
----------------------------------------------------------------------------
Web Server Port

Please enter the port that the bundled Apache Server will listen to by default.

Apache Web Server Port [80]:

Warning: Unable to bind to the given port number. This port is already in use by
the "httpd" process. You can stop the running process or select a different
port.
Press [Enter] to continue:81
----------------------------------------------------------------------------
Web Server Port

Please enter the port that the bundled Apache Server will listen to by default.

Apache Web Server Port [80]:

Warning: Unable to bind to the given port number. This port is already in use by
the "httpd" process. You can stop the running process or select a different
port.
Press [Enter] to continue:82
----------------------------------------------------------------------------
Web Server Port

Please enter the port that the bundled Apache Server will listen to by default.

Apache Web Server Port [80]: 82

----------------------------------------------------------------------------
Web Server Port

Please enter the port that the bundled Apache Server will use for SSL access.

SSL Port [443]: 999

----------------------------------------------------------------------------
Hostname that will be used to create internal URLs. If this value is incorrect,
you may be unable to access your Gitlab installation from other computers. It is
advisable to use a Domain instead of an IP address for compatibility with
different browsers.

Domain [0.0.4.18]: 10.10.10.42

Do you want to configure mail support? [y/N]: n

----------------------------------------------------------------------------
Setup is now ready to begin installing Bitnami Gitlab Stack on your computer.

Do you want to continue? [Y/n]: y

----------------------------------------------------------------------------
Please wait while Setup installs Bitnami Gitlab Stack on your computer.

 Installing
 0% ______________ 50% ______________ 100%
 #########################################

----------------------------------------------------------------------------
Setup has finished installing Bitnami Gitlab Stack on your computer.

Info: To access the Bitnami Gitlab Stack, go to
http://10.10.10.42:82 from your browser.
Press [Enter] to continue:

安裝完畢!
systemctl stop firewalld.service #停止firewall
訪問瀏覽器地址即可開啟gitlab.


相關文章