rocky 9.2 安装gitlab-ce记录

一、下载

 访问  https://packages.gitlab.com/gitlab/gitlab-ce

可以下载对应的安装包,rockey 9 对应的el9 这个os版本。

二、安装

  rpm  --ivh   gitlab-ce-16.1.2-ce.0.el9.x86_64.rpm

三、配置

 安装完毕后,系统会提示你如何配置。

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=16-1

很简单,就是修改 /etc/gitlab/gitlab.rb 这个配置文件,我只修改了三行:

external_url 'http://192.168.8.67'    修改为服务器的IP即可。

d

据说prometheus 很费电,关掉。

prometheus['enable'] = false
prometheus['monitor_kubernetes'] = false

gitlab-ctl reconfigure 使配置生效。

首次登录口令在/etc/gitlab/initial_root_password 中,24小时有效。

登录后可以修改口令。c

你可能感兴趣的:(gitlab)