GitLab安装 - sysrj2010/CICD GitHub Wiki

CentOS:

新建 /etc/yum.repos.d/gitlab-ce.repo,内容为

[gitlab-ce]

name=Gitlab CE Repository

baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el$releasever/

gpgcheck=0

enabled=1

再执行

sudo yum makecache

sudo yum install gitlab-ce

安装成功如下图

   *.                  *.

  ***                 ***

 *****               *****

.******             *******

********            ********

,,,,,,,,,***********,,,,,,,,,

,,,,,,,,,,,*********,,,,,,,,,,,

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

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

     ,,,,,,,****,,,,,,

        .,,,***,,,,

            ,*,.



 _______ __  __          __
/ ____(_) /_/ /   ____ _/ /_

/ / / / / / / __ `/ __
/ // / / // /
/ // / // / _
//_/___/_,/./

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

修改 vi /etc/gitlab/gitlab.rb ==> external_url="本机IP地址"

重新配置:

sudo gitlab-ctl reconfigure

重新启动 sudo gitlab-ctl restart