CentOS安装Gitlab

CentOS安装Gitlab

配置仓库

[root@bogon /]# cd /etc/yum.repos.d/

创建仓库文件

[root@bogon yum.repos.d]# vi gitlab-ce.repo

添加以下内容


[gitlab-ce]
name=gitlab-ce
baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/
gpgcheck=0
enabled=1

拉取更新和创建缓存

[root@bogon yum.repos.d]# yum clean all && yum makecache

21 files removed
CentOS Stream 9 - BaseOS                                                                                    3.1 MB/s | 8.2 MB     00:02  
CentOS Stream 9 - AppStream                                                                                 3.6 MB/s |  20 MB     00:05  
CentOS Stream 9 - Extras packages                                                                            32 kB/s |  18 kB     00:00  
gitlab-ce                                                                                                   9.3 MB/s | 701 MB     01:15  
Metadata cache created.

安装Gitlab-ce

[root@bogon yum.repos.d]# yum install -y gitlab-ce

安装过程及结果

============================================================================================================================================ Package                         Architecture                 Version                                 Repository                       Size
============================================================================================================================================Installing:
 gitlab-ce                       x86_64                       9.5.10-ce.0.el7                         gitlab-ce                       381 M
Skipping packages with broken dependencies:
 gitlab-ce                       x86_64                       17.1.1-ce.0.el7                         gitlab-ce                       936 M

Transaction Summary
============================================================================================================================================Install  1 Package
Skip     1 Package

Total download size: 381 M
Installed size: 381 M
Downloading Packages:
gitlab-ce-9.5.10-ce.0.el7.x86_64.rpm                                                                        9.4 MB/s | 381 MB     00:40  
--------------------------------------------------------------------------------------------------------------------------------------------Total                                                                                                       9.4 MB/s | 381 MB     00:40   
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                    1/1 
  Running scriptlet: gitlab-ce-9.5.10-ce.0.el7.x86_64                                                                                   1/1 
  Installing       : gitlab-ce-9.5.10-ce.0.el7.x86_64                                                                                   1/1 
  Running scriptlet: gitlab-ce-9.5.10-ce.0.el7.x86_64                                                                                   1/1 


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

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


gitlab: Thank you for installing GitLab!
gitlab: To configure and start GitLab, RUN THE FOLLOWING COMMAND:

sudo gitlab-ctl reconfigure

gitlab: GitLab should be reachable at http://bogon
gitlab: Otherwise configure GitLab for your system by editing /etc/gitlab/gitlab.rb file
gitlab: And running reconfigure again.
gitlab: 
gitlab: For a comprehensive list of configuration options please see the Omnibus GitLab readme
gitlab: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md
gitlab: 

  Verifying        : gitlab-ce-9.5.10-ce.0.el7.x86_64                                                                                   1/1 

Installed:
  gitlab-ce-9.5.10-ce.0.el7.x86_64                                                                                                        
Skipped:
  gitlab-ce-17.1.1-ce.0.el7.x86_64                                                                                                        

Complete!

启动和配置Gitlab

[root@bogon yum.repos.d]# gitlab-ctl reconfigure

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注