yum install lokkit
yum install curl openssh-server openssh-clients postfix cronie -y
service postfix start
chkconfig postfix on
lokkit -s http -s ssh
curl -sS http://packages.gitlab.cc/install/gitlab-ce/script.rpm.sh | sudo bash
curl -sS http://packages.gitlab.cc/install/gitlab-ce/script.rpm.sh | sudo bash
yum -y install gitlab-ce
1、vim /etc/gitlab/gitlab.rb
external_url ‘http://gitlab.xxxxx.com‘
2、重新加载配置
gitlab-ctl reconfigure
3、重启gitlab
gitlab-clt restart
原文:http://blog.51cto.com/12965094/2325050