Gitlab(一)Ubuntu系统安装

本文介绍在 Ubuntu 18.04.2 系统下安装 Gitlab 的方法和步骤。


  1. 下载 gitlab-ce 本地安装包(本文使用gitlab-ce_14.5.0-ce.0_amd64.deb

  2. 上传到 Ubuntu 系统中,使用dpkg命令安装

root@...:/opt# dpkg -i gitlab-ce_14.5.0-ce.0_amd64.deb 
Selecting previously unselected package gitlab-ce.
(Reading database ... 91294 files and directories currently installed.)
Preparing to unpack gitlab-ce_14.5.0-ce.0_amd64.deb ...
Unpacking gitlab-ce (14.5.0-ce.0) ...
Setting up gitlab-ce (14.5.0-ce.0) ...
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

Help us improve the installation experience, let us know how we did with a 1 minute survey:
https://gitlab.fra1.qualtrics.com/jfe/form/SV_6kVqZANThUQ1bZb?installation=omnibus&release=14-5
  1. 执行配置命令 sudo gitlab-ctl reconfigure

  2. 启动 sudo gitlab-ctl start

  3. 浏览器访问http://IP,用户名root,初始密码记录在/etc/gitlab/initial_root_password文件中

你可能感兴趣的:(Gitlab(一)Ubuntu系统安装)