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

 

你可能感兴趣的:(gitlab-ce离线安装)