按照官方教程的步骤:https://about.gitlab.com/downloads/#centos6 nginx
可是执行这一步git
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash sudo yum install gitlab-ce
会报错找不到镜像文件。redis
因此我本身下载了rpm 文件在安装。sql
步骤以下:shell
sudo yum install openssh-server sudo yum install postfix # sendmail or exim is also OK sudo rpm -i gitlab-6.9.2_omnibus.1-1.el6.x86_64.rpm # this is the .rpm you downloaded sudo gitlab-ctl reconfigure //可能会报错:External URL must include a FQDN(解决办法在下面) sudo lokkit -s http -s ssh # open up the firewall for HTTP and SSH requests ok! sudo gitlab-ctl status; #查看安装后的程序运行状况!输出以下: run: nginx: (pid 3012) 53s; run: log: (pid 3011) 53s run: postgresql: (pid 2857) 87s; run: log: (pid 2856) 87s run: redis: (pid 2759) 98s; run: log: (pid 2758) 98s run: sidekiq: (pid 2967) 60s; run: log: (pid 2966) 60s run: unicorn: (pid 2938) 66s; run: log: (pid 2937) 66s 说明安装成功。 经过浏览器访问:http://localhost 或者 http://ip
OK,能够了用户名和密码默认是root/5iveL!fecentos
遇到的问题:浏览器
1. 报错:External URL must include a FQDNbash
/etc/gitlab/gitlab.rb默认没有“=”,要本身加上ssh
external_url = 'gitlab.thefallenphoenix.net'
curl
附上gitlab网盘地址:http://pan.baidu.com/s/1nt7xeEP
官方安装方法:https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/installation.md