Follow the official tutorial steps: https://about.gitlab.com/downloads/#centos6
But take this step
Curl Https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bashsudo yum install Gitlab-ce
Error will not find the image file.
So I downloaded the rpm file myself in the installation.
The steps are as follows:
Sudo yum install openssh-serversudo yum install postfix # sendmail or exim is also oksudo rpm -i gitlab-6.9.2_omnibus.1-1.el6.x86_64.rpm # this is the .rpm you downloadedsudo gitlab-ctl reconfigure //may error: External url must include a fqdn (solution below) Sudo lokkit -s http -s ssh # open up the firewall for HTTP and ssh requestsok!sudo gitlab-ctl status; #查看安装后的程序运行情况! The output is as follows:run: nginx: (pid 3012) 53s; run: log: (pid 3011) 53srun: postgresql: (pid 2857) 87s; run: log: (pid 2856) 87srun: redis: (pid 2759) 98s; run: log: (pid 2758) 98srun: sidekiq: (pid 2967) 60s; run: log: (pid 2966) 60srun: unicorn: (pid 2938) 66s; run: log: ( pid 2937) 66s indicates that the installation was successful. Access:http://localhost or   HTTP://IP through a browser
OK, the user name and password are root/5ivel!fe by default
Problems encountered:
1. Error:External URL must include a FQDN
/etc/gitlab/gitlab.rb default does not "=", to add themselves
External_url = ' gitlab.thefallenphoenix.net '
Attached Gitlab network address: Http://pan.baidu.com/s/1nt7xeEP
Official installation Method: Https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/installation.md
CentOS Installation Gitlab