在CentOS 7.X上安装GitLab

[root@m01 ~]# yum install -y curl policycoreutils-python openssh-server
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirror.bit.edu.cn
 * extras: mirror.bit.edu.cn
 * updates: mirrors.aliyun.com
Resolving Dependencies
--> Running transaction check
---> Package curl.x86_64 0:7.29.0-42.el7 will be updated
---> Package curl.x86_64 0:7.29.0-51.el7 will be an update
--> Processing Dependency: libcurl = 7.29.0-51.el7 for package: curl-7.29.0-51.el7.x86_64
---> Package openssh-server.x86_64 0:7.4p1-11.el7 will be updated
---> Package openssh-server.x86_64 0:7.4p1-16.el7 will be an update
--> Processing Dependency: openssh = 7.4p1-16.el7 for package: openssh-server-7.4p1-16.el7.x86_64
---> Package policycoreutils-python.x86_64 0:2.5-17.1.el7 will be updated
---> Package policycoreutils-python.x86_64 0:2.5-29.el7_6.1 will be an update
--> Processing Dependency: policycoreutils = 2.5-29.el7_6.1 for package: policycoreutils-python-2.5-29.el7_6.1.x86_64
--> Processing Dependency: setools-libs >= 3.3.8-4 for package: policycoreutils-python-2.5-29.el7_6.1.x86_64
--> Processing Dependency: libsemanage-python >= 2.5-14 for package: policycoreutils-python-2.5-29.el7_6.1.x86_64
--> Running transaction check
---> Package libcurl.x86_64 0:7.29.0-42.el7 will be updated
---> Package libcurl.x86_64 0:7.29.0-51.el7 will be an update
--> Processing Dependency: nss-pem(x86-64) >= 1.0.3-5 for package: libcurl-7.29.0-51.el7.x86_64
--> Processing Dependency: libnss3.so(NSS_3.34)(64bit) for package: libcurl-7.29.0-51.el7.x86_64
---> Package libsemanage-python.x86_64 0:2.5-8.el7 will be updated
---> Package libsemanage-python.x86_64 0:2.5-14.el7 will be an update
--> Processing Dependency: libsemanage = 2.5-14.el7 for package: libsemanage-python-2.5-14.el7.x86_64
---> Package openssh.x86_64 0:7.4p1-11.el7 will be updated
--> Processing Dependency: openssh = 7.4p1-11.el7 for package: openssh-clients-7.4p1-11.el7.x86_64
---> Package openssh.x86_64 0:7.4p1-16.el7 will be an update
---> Package policycoreutils.x86_64 0:2.5-17.1.el7 will be updated
---> Package policycoreutils.x86_64 0:2.5-29.el7_6.1 will be an update
--> Processing Dependency: libsepol >= 2.5-10 for package: policycoreutils-2.5-29.el7_6.1.x86_64
--> Processing Dependency: libselinux-utils >= 2.5-14 for package: policycoreutils-2.5-29.el7_6.1.x86_64
---> Package setools-libs.x86_64 0:3.3.8-1.1.el7 will be updated
---> Package setools-libs.x86_64 0:3.3.8-4.el7 will be an update
--> Processing Dependency: libselinux >= 2.5-14.1 for package: setools-libs-3.3.8-4.el7.x86_64
--> Running transaction check
---> Package libselinux.x86_64 0:2.5-11.el7 will be updated
--> Processing Dependency: libselinux(x86-64) = 2.5-11.el7 for package: libselinux-python-2.5-11.el7.x86_64
---> Package libselinux.x86_64 0:2.5-14.1.el7 will be an update
---> Package libselinux-utils.x86_64 0:2.5-11.el7 will be updated
---> Package libselinux-utils.x86_64 0:2.5-14.1.el7 will be an update
---> Package libsemanage.x86_64 0:2.5-8.el7 will be updated
---> Package libsemanage.x86_64 0:2.5-14.el7 will be an update
---> Package libsepol.x86_64 0:2.5-6.el7 will be updated
---> Package libsepol.x86_64 0:2.5-10.el7 will be an update
---> Package nss.x86_64 0:3.28.4-8.el7 will be updated
--> Processing Dependency: nss = 3.28.4-8.el7 for package: nss-sysinit-3.28.4-8.el7.x86_64
--> Processing Dependency: nss(x86-64) = 3.28.4-8.el7 for package: nss-tools-3.28.4-8.el7.x86_64
---> Package nss.x86_64 0:3.36.0-7.1.el7_6 will be an update
--> Processing Dependency: nss-util >= 3.36.0-1.1 for package: nss-3.36.0-7.1.el7_6.x86_64
--> Processing Dependency: nss-softokn(x86-64) >= 3.36.0-1 for package: nss-3.36.0-7.1.el7_6.x86_64
--> Processing Dependency: nspr >= 4.19.0 for package: nss-3.36.0-7.1.el7_6.x86_64
--> Processing Dependency: libnssutil3.so(NSSUTIL_3.31)(64bit) for package: nss-3.36.0-7.1.el7_6.x86_64
---> Package nss-pem.x86_64 0:1.0.3-4.el7 will be updated
---> Package nss-pem.x86_64 0:1.0.3-5.el7_6.1 will be an update
---> Package openssh-clients.x86_64 0:7.4p1-11.el7 will be updated
---> Package openssh-clients.x86_64 0:7.4p1-16.el7 will be an update
--> Running transaction check
---> Package libselinux-python.x86_64 0:2.5-11.el7 will be updated
---> Package libselinux-python.x86_64 0:2.5-14.1.el7 will be an update
---> Package nspr.x86_64 0:4.13.1-1.0.el7_3 will be updated
---> Package nspr.x86_64 0:4.19.0-1.el7_5 will be an update
---> Package nss-softokn.x86_64 0:3.28.3-6.el7 will be updated
---> Package nss-softokn.x86_64 0:3.36.0-5.el7_5 will be an update
--> Processing Dependency: nss-softokn-freebl(x86-64) >= 3.36.0-5.el7_5 for package: nss-softokn-3.36.0-5.el7_5.x86_64
---> Package nss-sysinit.x86_64 0:3.28.4-8.el7 will be updated
---> Package nss-sysinit.x86_64 0:3.36.0-7.1.el7_6 will be an update
---> Package nss-tools.x86_64 0:3.28.4-8.el7 will be updated
---> Package nss-tools.x86_64 0:3.36.0-7.1.el7_6 will be an update
---> Package nss-util.x86_64 0:3.28.4-3.el7 will be updated
---> Package nss-util.x86_64 0:3.36.0-1.1.el7_6 will be an update
--> Running transaction check
---> Package nss-softokn-freebl.x86_64 0:3.28.3-6.el7 will be updated
---> Package nss-softokn-freebl.x86_64 0:3.36.0-5.el7_5 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

===============================================================================================================================================================================================
 Package                                                Arch                                   Version                                           Repository                               Size
===============================================================================================================================================================================================
Updating:
 curl                                                   x86_64                                 7.29.0-51.el7                                     base                                    269 k
 openssh-server                                         x86_64                                 7.4p1-16.el7                                      base                                    458 k
 policycoreutils-python                                 x86_64                                 2.5-29.el7_6.1                                    updates                                 456 k
Updating for dependencies:
 libcurl                                                x86_64                                 7.29.0-51.el7                                     base                                    221 k
 libselinux                                             x86_64                                 2.5-14.1.el7                                      base                                    162 k
 libselinux-python                                      x86_64                                 2.5-14.1.el7                                      base                                    235 k
 libselinux-utils                                       x86_64                                 2.5-14.1.el7                                      base                                    151 k
 libsemanage                                            x86_64                                 2.5-14.el7                                        base                                    151 k
 libsemanage-python                                     x86_64                                 2.5-14.el7                                        base                                    113 k
 libsepol                                               x86_64                                 2.5-10.el7                                        base                                    297 k
 nspr                                                   x86_64                                 4.19.0-1.el7_5                                    base                                    127 k
 nss                                                    x86_64                                 3.36.0-7.1.el7_6                                  updates                                 835 k
 nss-pem                                                x86_64                                 1.0.3-5.el7_6.1                                   updates                                  74 k
 nss-softokn                                            x86_64                                 3.36.0-5.el7_5                                    base                                    315 k
 nss-softokn-freebl                                     x86_64                                 3.36.0-5.el7_5                                    base                                    222 k
 nss-sysinit                                            x86_64                                 3.36.0-7.1.el7_6                                  updates                                  62 k
 nss-tools                                              x86_64                                 3.36.0-7.1.el7_6                                  updates                                 515 k
 nss-util                                               x86_64                                 3.36.0-1.1.el7_6                                  updates                                  78 k
 openssh                                                x86_64                                 7.4p1-16.el7                                      base                                    510 k
 openssh-clients                                        x86_64                                 7.4p1-16.el7                                      base                                    655 k
 policycoreutils                                        x86_64                                 2.5-29.el7_6.1                                    updates                                 916 k
 setools-libs                                           x86_64                                 3.3.8-4.el7                                       base                                    620 k

Transaction Summary
===============================================================================================================================================================================================
Upgrade  3 Packages (+19 Dependent packages)

Total size: 7.3 M
Downloading packages:
warning: /var/cache/yum/x86_64/7/updates/packages/nss-pem-1.0.3-5.el7_6.1.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Importing GPG key 0xF4A80EB5:
 Userid     : "CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>"
 Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
 Package    : centos-release-7-4.1708.el7.centos.x86_64 (@anaconda)
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : nspr-4.19.0-1.el7_5.x86_64                                                                                                                                                 1/44 
  Updating   : nss-util-3.36.0-1.1.el7_6.x86_64                                                                                                                                           2/44 
  Updating   : libsepol-2.5-10.el7.x86_64                                                                                                                                                 3/44 
  Updating   : libselinux-2.5-14.1.el7.x86_64                                                                                                                                             4/44 
  Updating   : libsemanage-2.5-14.el7.x86_64                                                                                                                                              5/44 
  Updating   : openssh-7.4p1-16.el7.x86_64                                                                                                                                                6/44 
  Updating   : libsemanage-python-2.5-14.el7.x86_64                                                                                                                                       7/44 
  Updating   : setools-libs-3.3.8-4.el7.x86_64                                                                                                                                            8/44 
  Updating   : libselinux-python-2.5-14.1.el7.x86_64                                                                                                                                      9/44 
  Updating   : libselinux-utils-2.5-14.1.el7.x86_64                                                                                                                                      10/44 
  Updating   : policycoreutils-2.5-29.el7_6.1.x86_64                                                                                                                                     11/44 
  Updating   : nss-softokn-freebl-3.36.0-5.el7_5.x86_64                                                                                                                                  12/44 
  Updating   : nss-softokn-3.36.0-5.el7_5.x86_64                                                                                                                                         13/44 
  Updating   : nss-sysinit-3.36.0-7.1.el7_6.x86_64                                                                                                                                       14/44 
  Updating   : nss-3.36.0-7.1.el7_6.x86_64                                                                                                                                               15/44 
  Updating   : nss-pem-1.0.3-5.el7_6.1.x86_64                                                                                                                                            16/44 
  Updating   : libcurl-7.29.0-51.el7.x86_64                                                                                                                                              17/44 
  Updating   : curl-7.29.0-51.el7.x86_64                                                                                                                                                 18/44 
  Updating   : nss-tools-3.36.0-7.1.el7_6.x86_64                                                                                                                                         19/44 
  Updating   : policycoreutils-python-2.5-29.el7_6.1.x86_64                                                                                                                              20/44 
  Updating   : openssh-server-7.4p1-16.el7.x86_64                                                                                                                                        21/44 
  Updating   : openssh-clients-7.4p1-16.el7.x86_64                                                                                                                                       22/44 
  Cleanup    : policycoreutils-python-2.5-17.1.el7.x86_64                                                                                                                                23/44 
  Cleanup    : nss-tools-3.28.4-8.el7.x86_64                                                                                                                                             24/44 
  Cleanup    : curl-7.29.0-42.el7.x86_64                                                                                                                                                 25/44 
  Cleanup    : libcurl-7.29.0-42.el7.x86_64                                                                                                                                              26/44 
  Cleanup    : nss-sysinit-3.28.4-8.el7.x86_64                                                                                                                                           27/44 
  Cleanup    : nss-3.28.4-8.el7.x86_64                                                                                                                                                   28/44 
  Cleanup    : nss-pem-1.0.3-4.el7.x86_64                                                                                                                                                29/44 
  Cleanup    : nss-softokn-3.28.3-6.el7.x86_64                                                                                                                                           30/44 
  Cleanup    : policycoreutils-2.5-17.1.el7.x86_64                                                                                                                                       31/44 
  Cleanup    : libselinux-utils-2.5-11.el7.x86_64                                                                                                                                        32/44 
  Cleanup    : setools-libs-3.3.8-1.1.el7.x86_64                                                                                                                                         33/44 
  Cleanup    : openssh-clients-7.4p1-11.el7.x86_64                                                                                                                                       34/44 
  Cleanup    : openssh-server-7.4p1-11.el7.x86_64                                                                                                                                        35/44 
  Cleanup    : openssh-7.4p1-11.el7.x86_64                                                                                                                                               36/44 
  Cleanup    : nss-util-3.28.4-3.el7.x86_64                                                                                                                                              37/44 
  Cleanup    : libselinux-python-2.5-11.el7.x86_64                                                                                                                                       38/44 
  Cleanup    : libsemanage-python-2.5-8.el7.x86_64                                                                                                                                       39/44 
  Cleanup    : libsemanage-2.5-8.el7.x86_64                                                                                                                                              40/44 
  Cleanup    : libselinux-2.5-11.el7.x86_64                                                                                                                                              41/44 
  Cleanup    : libsepol-2.5-6.el7.x86_64                                                                                                                                                 42/44 
  Cleanup    : nspr-4.13.1-1.0.el7_3.x86_64                                                                                                                                              43/44 
  Cleanup    : nss-softokn-freebl-3.28.3-6.el7.x86_64                                                                                                                                    44/44 
  Verifying  : nss-pem-1.0.3-5.el7_6.1.x86_64                                                                                                                                             1/44 
  Verifying  : openssh-server-7.4p1-16.el7.x86_64                                                                                                                                         2/44 
  Verifying  : policycoreutils-2.5-29.el7_6.1.x86_64                                                                                                                                      3/44 
  Verifying  : nss-util-3.36.0-1.1.el7_6.x86_64                                                                                                                                           4/44 
  Verifying  : nss-tools-3.36.0-7.1.el7_6.x86_64                                                                                                                                          5/44 
  Verifying  : nss-sysinit-3.36.0-7.1.el7_6.x86_64                                                                                                                                        6/44 
  Verifying  : setools-libs-3.3.8-4.el7.x86_64                                                                                                                                            7/44 
  Verifying  : nss-3.36.0-7.1.el7_6.x86_64                                                                                                                                                8/44 
  Verifying  : policycoreutils-python-2.5-29.el7_6.1.x86_64                                                                                                                               9/44 
  Verifying  : libsemanage-python-2.5-14.el7.x86_64                                                                                                                                      10/44 
  Verifying  : libsemanage-2.5-14.el7.x86_64                                                                                                                                             11/44 
  Verifying  : libsepol-2.5-10.el7.x86_64                                                                                                                                                12/44 
  Verifying  : libcurl-7.29.0-51.el7.x86_64                                                                                                                                              13/44 
  Verifying  : libselinux-python-2.5-14.1.el7.x86_64                                                                                                                                     14/44 
  Verifying  : libselinux-utils-2.5-14.1.el7.x86_64                                                                                                                                      15/44 
  Verifying  : openssh-7.4p1-16.el7.x86_64                                                                                                                                               16/44 
  Verifying  : nss-softokn-freebl-3.36.0-5.el7_5.x86_64                                                                                                                                  17/44 
  Verifying  : nspr-4.19.0-1.el7_5.x86_64                                                                                                                                                18/44 
  Verifying  : curl-7.29.0-51.el7.x86_64                                                                                                                                                 19/44 
  Verifying  : openssh-clients-7.4p1-16.el7.x86_64                                                                                                                                       20/44 
  Verifying  : nss-softokn-3.36.0-5.el7_5.x86_64                                                                                                                                         21/44 
  Verifying  : libselinux-2.5-14.1.el7.x86_64                                                                                                                                            22/44 
  Verifying  : nspr-4.13.1-1.0.el7_3.x86_64                                                                                                                                              23/44 
  Verifying  : libselinux-utils-2.5-11.el7.x86_64                                                                                                                                        24/44 
  Verifying  : nss-pem-1.0.3-4.el7.x86_64                                                                                                                                                25/44 
  Verifying  : libsepol-2.5-6.el7.x86_64                                                                                                                                                 26/44 
  Verifying  : policycoreutils-python-2.5-17.1.el7.x86_64                                                                                                                                27/44 
  Verifying  : libcurl-7.29.0-42.el7.x86_64                                                                                                                                              28/44 
  Verifying  : nss-softokn-3.28.3-6.el7.x86_64                                                                                                                                           29/44 
  Verifying  : nss-util-3.28.4-3.el7.x86_64                                                                                                                                              30/44 
  Verifying  : openssh-7.4p1-11.el7.x86_64                                                                                                                                               31/44 
  Verifying  : curl-7.29.0-42.el7.x86_64                                                                                                                                                 32/44 
  Verifying  : libselinux-2.5-11.el7.x86_64                                                                                                                                              33/44 
  Verifying  : openssh-server-7.4p1-11.el7.x86_64                                                                                                                                        34/44 
  Verifying  : policycoreutils-2.5-17.1.el7.x86_64                                                                                                                                       35/44 
  Verifying  : openssh-clients-7.4p1-11.el7.x86_64                                                                                                                                       36/44 
  Verifying  : libsemanage-python-2.5-8.el7.x86_64                                                                                                                                       37/44 
  Verifying  : libsemanage-2.5-8.el7.x86_64                                                                                                                                              38/44 
  Verifying  : nss-3.28.4-8.el7.x86_64                                                                                                                                                   39/44 
  Verifying  : nss-sysinit-3.28.4-8.el7.x86_64                                                                                                                                           40/44 
  Verifying  : nss-tools-3.28.4-8.el7.x86_64                                                                                                                                             41/44 
  Verifying  : libselinux-python-2.5-11.el7.x86_64                                                                                                                                       42/44 
  Verifying  : nss-softokn-freebl-3.28.3-6.el7.x86_64                                                                                                                                    43/44 
  Verifying  : setools-libs-3.3.8-1.1.el7.x86_64                                                                                                                                         44/44 

Updated:
  curl.x86_64 0:7.29.0-51.el7                           openssh-server.x86_64 0:7.4p1-16.el7                           policycoreutils-python.x86_64 0:2.5-29.el7_6.1                          

Dependency Updated:
  libcurl.x86_64 0:7.29.0-51.el7               libselinux.x86_64 0:2.5-14.1.el7               libselinux-python.x86_64 0:2.5-14.1.el7        libselinux-utils.x86_64 0:2.5-14.1.el7           
  libsemanage.x86_64 0:2.5-14.el7              libsemanage-python.x86_64 0:2.5-14.el7         libsepol.x86_64 0:2.5-10.el7                   nspr.x86_64 0:4.19.0-1.el7_5                     
  nss.x86_64 0:3.36.0-7.1.el7_6                nss-pem.x86_64 0:1.0.3-5.el7_6.1               nss-softokn.x86_64 0:3.36.0-5.el7_5            nss-softokn-freebl.x86_64 0:3.36.0-5.el7_5       
  nss-sysinit.x86_64 0:3.36.0-7.1.el7_6        nss-tools.x86_64 0:3.36.0-7.1.el7_6            nss-util.x86_64 0:3.36.0-1.1.el7_6             openssh.x86_64 0:7.4p1-16.el7                    
  openssh-clients.x86_64 0:7.4p1-16.el7        policycoreutils.x86_64 0:2.5-29.el7_6.1        setools-libs.x86_64 0:3.3.8-4.el7             

Complete!
[root@m01 ~]# systemctl enable sshd
[root@m01 ~]# systemctl start sshd
[root@m01 ~]# firewall-cmd --permanent --add-service=http
FirewallD is not running
[root@m01 ~]# systemctl reload firewalld
Job for firewalld.service invalid.
[root@m01 ~]# yum install postfix
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirror.bit.edu.cn
 * extras: mirror.bit.edu.cn
 * updates: mirrors.aliyun.com
Resolving Dependencies
--> Running transaction check
---> Package postfix.x86_64 2:2.10.1-6.el7 will be updated
---> Package postfix.x86_64 2:2.10.1-7.el7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

===============================================================================================================================================================================================
 Package                                      Arch                                        Version                                              Repository                                 Size
===============================================================================================================================================================================================
Updating:
 postfix                                      x86_64                                      2:2.10.1-7.el7                                       base                                      2.4 M

Transaction Summary
===============================================================================================================================================================================================
Upgrade  1 Package

Total size: 2.4 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : 2:postfix-2.10.1-7.el7.x86_64                                                                                                                                               1/2 
  Cleanup    : 2:postfix-2.10.1-6.el7.x86_64                                                                                                                                               2/2 
  Verifying  : 2:postfix-2.10.1-7.el7.x86_64                                                                                                                                               1/2 
  Verifying  : 2:postfix-2.10.1-6.el7.x86_64                                                                                                                                               2/2 

Updated:
  postfix.x86_64 2:2.10.1-7.el7                                                                                                                                                                

Complete!
[root@m01 ~]# systemctl enable postfix
[root@m01 ~]# systemctl start postfix
[root@m01 ~]# curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  6705    0  6705    0     0   2474      0 --:--:--  0:00:02 --:--:--  2475
Detected operating system as centos/7.
Checking for curl...
Detected curl...
Downloading repository file: https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/config_file.repo?os=centos&dist=7&source=script
done.
Installing pygpgme to verify GPG signatures...
Loaded plugins: fastestmirror, langpacks
gitlab_gitlab-ee-source/signature                                                                                                                                       |  836 B  00:00:00     
Retrieving key from https://packages.gitlab.com/gitlab/gitlab-ee/gpgkey
Importing GPG key 0xE15E78F4:
 Userid     : "GitLab B.V. (package repository signing key) <packages@gitlab.com>"
 Fingerprint: 1a4c 919d b987 d435 9396 38b9 1421 9a96 e15e 78f4
 From       : https://packages.gitlab.com/gitlab/gitlab-ee/gpgkey
Retrieving key from https://packages.gitlab.com/gitlab/gitlab-ee/gpgkey/gitlab-gitlab-ee-3D645A26AB9FBD22.pub.gpg
gitlab_gitlab-ee-source/signature                                                                                                                                       |  951 B  00:00:01 !!! 
gitlab_gitlab-ee-source/primary                                                                                                                                         |  175 B  00:00:03     
Loading mirror speeds from cached hostfile
 * base: mirror.bit.edu.cn
 * extras: mirror.bit.edu.cn
 * updates: mirrors.aliyun.com
Package pygpgme-0.3-9.el7.x86_64 already installed and latest version
Nothing to do
Installing yum-utils...
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirror.bit.edu.cn
 * extras: mirror.bit.edu.cn
 * updates: mirrors.aliyun.com
Resolving Dependencies
--> Running transaction check
---> Package yum-utils.noarch 0:1.1.31-42.el7 will be updated
---> Package yum-utils.noarch 0:1.1.31-50.el7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

===============================================================================================================================================================================================
 Package                                        Arch                                        Version                                            Repository                                 Size
===============================================================================================================================================================================================
Updating:
 yum-utils                                      noarch                                      1.1.31-50.el7                                      base                                      121 k

Transaction Summary
===============================================================================================================================================================================================
Upgrade  1 Package

Total size: 121 k
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : yum-utils-1.1.31-50.el7.noarch                                                                                                                                              1/2 
  Cleanup    : yum-utils-1.1.31-42.el7.noarch                                                                                                                                              2/2 
  Verifying  : yum-utils-1.1.31-50.el7.noarch                                                                                                                                              1/2 
  Verifying  : yum-utils-1.1.31-42.el7.noarch                                                                                                                                              2/2 

Updated:
  yum-utils.noarch 0:1.1.31-50.el7                                                                                                                                                             

Complete!
Generating yum cache for gitlab_gitlab-ee...
Importing GPG key 0xE15E78F4:
 Userid     : "GitLab B.V. (package repository signing key) <packages@gitlab.com>"
 Fingerprint: 1a4c 919d b987 d435 9396 38b9 1421 9a96 e15e 78f4
 From       : https://packages.gitlab.com/gitlab/gitlab-ee/gpgkey
Generating yum cache for gitlab_gitlab-ee-source...

The repository is setup! You can now install packages.
[root@m01 ~]# vi /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
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"/etc/yum.repos.d/gitlab-ce.repo" [New] 5L, 133C written
[root@m01 ~]# sudo yum makecache
Loaded plugins: fastestmirror, langpacks
base                                                                                                                                                                    | 3.6 kB  00:00:00     
extras                                                                                                                                                                  | 3.4 kB  00:00:00     
gitlab-ce                                                                                                                                                               | 2.9 kB  00:00:00     
gitlab_gitlab-ee/x86_64/signature                                                                                                                                       |  836 B  00:00:00     
gitlab_gitlab-ee/x86_64/signature                                                                                                                                       | 1.0 kB  00:00:00 !!! 
gitlab_gitlab-ee-source/signature                                                                                                                                       |  836 B  00:00:00     
gitlab_gitlab-ee-source/signature                                                                                                                                       |  951 B  00:00:00 !!! 
updates                                                                                                                                                                 | 3.4 kB  00:00:00     
(1/6): extras/7/x86_64/other_db                                                                                                                                         | 127 kB  00:00:00     
(2/6): extras/7/x86_64/prestodelta                                                                                                                                      |  65 kB  00:00:00     
(3/6): extras/7/x86_64/filelists_db                                                                                                                                     | 246 kB  00:00:01     
(4/6): gitlab-ce/7/primary_db                                                                                                                                           | 2.9 MB  00:00:02     
(5/6): gitlab-ce/7/other_db                                                                                                                                             |  28 kB  00:00:00     
(6/6): gitlab-ce/7/filelists_db                                                                                                                                         | 240 MB  00:01:13     
Loading mirror speeds from cached hostfile
 * base: mirror.bit.edu.cn
 * extras: mirror.bit.edu.cn
 * updates: mirrors.aliyun.com
Metadata Cache Created
[root@m01 ~]# yum install gitlab-ce -y
Loaded plugins: fastestmirror, langpacks
gitlab_gitlab-ee/x86_64/signature                                                                                                                                       |  836 B  00:00:00     
gitlab_gitlab-ee/x86_64/signature                                                                                                                                       | 1.0 kB  00:00:00 !!! 
gitlab_gitlab-ee-source/signature                                                                                                                                       |  836 B  00:00:00     
gitlab_gitlab-ee-source/signature                                                                                                                                       |  951 B  00:00:00 !!! 
Loading mirror speeds from cached hostfile
 * base: mirror.bit.edu.cn
 * extras: mirror.bit.edu.cn
 * updates: mirrors.aliyun.com
Resolving Dependencies
--> Running transaction check
---> Package gitlab-ce.x86_64 0:11.11.3-ce.0.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===============================================================================================================================================================================================
 Package                                      Arch                                      Version                                             Repository                                    Size
===============================================================================================================================================================================================
Installing:
 gitlab-ce                                    x86_64                                    11.11.3-ce.0.el7                                    gitlab-ce                                    627 M

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

Total download size: 627 M
Installed size: 627 M
Downloading packages:
gitlab-ce-11.11.3-ce.0.el7.x86_64.rpm                                                                                                                                   | 627 MB  00:03:16     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : gitlab-ce-11.11.3-ce.0.el7.x86_64                                                                                                                                           1/1 

gitlab: GitLab now ships with a newer version of PostgreSQL (10.7), but it is not yet
gitlab: enabled by default. To upgrade, RUN THE FOLLOWING COMMAND:

sudo gitlab-ctl pg-upgrade

gitlab: Note: This command does not support Geo instances yet. So we don't
gitlab: recommend running this command on Geo nodes. It will be supported
gitlab: in GitLab 12.0.

gitlab: For more details, please see:
gitlab: https://docs.gitlab.com/omnibus/settings/database.html#upgrade-packaged-postgresql-server
gitlab: 
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

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

Installed:
  gitlab-ce.x86_64 0:11.11.3-ce.0.el7                                                                                                                                                          

Complete!
[root@m01 ~]

 

[root@m01 ~]# gitlab-ctl reconfigure
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值