gitlab安装备忘录

[root@linux ~]# 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  6399    0  6399    0     0   3582      0 --:--:--  0:00:01 --:--:--  3580
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
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
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: mirrors.shuosc.org
 * extras: mirrors.163.com
 * updates: mirrors.163.com
Package pygpgme-0.3-9.el7.x86_64 already installed and latest version
Nothing to do
Installing yum-utils...
Loaded plugins: fastestmirror
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Loading mirror speeds from cached hostfile
 * base: mirrors.sohu.com
 * extras: mirrors.163.com
 * updates: mirrors.163.com
Package yum-utils-1.1.31-42.el7.noarch already installed and latest version
Nothing to do
Generating yum cache for gitlab_gitlab-ee...
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration

The repository is setup! You can now install packages.
[root@linux ~]# sudo EXTERNAL_URL="http://gitlab.example.com" yum install -y gitlab-ee
Loaded plugins: fastestmirror
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Loading mirror speeds from cached hostfile
 * base: mirrors.zju.edu.cn
 * extras: mirrors.163.com
 * updates: mirrors.163.com
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction, or "yum-complete-transaction --cleanup-only" and "yum history redo last", first to finish them. If those don't work you'll have to try removing/installing packages by hand (maybe package-cleanup can help).
--> Running transaction check
---> Package gitlab-ee.x86_64 0:10.3.3-ee.0.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================
 Package                        Arch                        Version                              Repository                             Size
=============================================================================================================================================
Installing:
 gitlab-ee                      x86_64                      10.3.3-ee.0.el7                      gitlab_gitlab-ee                      427 M

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

Total size: 427 M
Installed size: 1.2 G
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : gitlab-ee-10.3.3-ee.0.el7.x86_64                                                                                          1/1 
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-ee-10.3.3-ee.0.el7.x86_64                                                                                          1/1 

Installed:
  gitlab-ee.x86_64 0:10.3.3-ee.0.el7                                                                                                         

Complete!
[root@linux ~]#
[root@linux ~]# gitlab-ctl status
[root@linux ~]# netstat -lntp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      11441/nginx: master 
tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN      11378/java          
tcp        0      0 0.0.0.0:81              0.0.0.0:*               LISTEN      11590/httpd         
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      2942/sshd           
tcp        0      0 127.0.0.1:8889          0.0.0.0:*               LISTEN      11633/chef-client w 
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN      11429/master        
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      11441/nginx: master 
tcp        0      0 127.0.0.1:8005          0.0.0.0:*               LISTEN      11378/java          
tcp        0      0 0.0.0.0:8009            0.0.0.0:*               LISTEN      11378/java          
tcp6       0      0 :::22                   :::*                    LISTEN      2942/sshd           
tcp6       0      0 :::3306                 :::*                    LISTEN      2038/mysqld         
[root@linux ~]# 

posted @ 2018-01-10 23:17  当归远志  阅读(666)  评论(0编辑  收藏  举报