gitlab-ce離線安裝

GitLab 是一個用於倉庫管理系統的開源項目,使用Git作爲代碼管理工具,並在此基礎上搭建起來的web服務。本文基於CentOS 7.3,離線安裝GitLab-CE(gitlab-ce-11.7.5-ce.0.el7.x86_64.rpm)。

1、下載離線rpm,安裝

[root@localhost soft]# rpm -ivh gitlab-ce-11.7.5-ce.0.el7.x86_64.rpm 
警告:gitlab-ce-11.7.5-ce.0.el7.x86_64.rpm: 頭V4 RSA/SHA1 Signature, 密鑰 ID f27eab47: NOKEY
準備中...                          ################################# [100%]
正在升級/安裝...
   1:gitlab-ce-11.7.5-ce.0.el7        ################################# [100%]
It looks like GitLab has not been configured yet; skipping the upgrade script.

       *.                  *.
      ***                 ***
     *****               *****
    .******             *******
    ********            ********
   ,,,,,,,,,***********,,,,,,,,,
  ,,,,,,,,,,,*********,,,,,,,,,,,
  .,,,,,,,,,,,*******,,,,,,,,,,,,
      ,,,,,,,,,*****,,,,,,,,,.
         ,,,,,,,****,,,,,,
            .,,,***,,,,
                ,*,.
  


     _______ __  __          __
    / ____(_) /_/ /   ____ _/ /_
   / / __/ / __/ /   / __ `/ __ \
  / /_/ / / /_/ /___/ /_/ / /_/ /
  \____/_/\__/_____/\__,_/_.___/
  

Thank you for installing GitLab!
GitLab was unable to detect a valid hostname for your instance.
Please configure a URL for your GitLab instance by setting `external_url`
configuration in /etc/gitlab/gitlab.rb file.
Then, you can start your GitLab instance by running the following command:
  sudo gitlab-ctl reconfigure

For a comprehensive list of configuration options please see the Omnibus GitLab readme
https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md

2、修改配置文件gitlab.rb

[root@localhost soft]# vim /etc/gitlab/gitlab.rb

   將external_url 的值改爲服務器ip(192.168.12.5),默認端口80,如:
   external_url 'http://192.168.12.5'
3、重新配置

[root@localhost soft]#gitlab-ctl reconfigure

4、啓動

[root@localhost soft]#gitlab-ctl start

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章