安装说明:https://about.gitlab.com/installation/
sudo yum install -y curl policycoreutils-python openssh-server cronie
sudo lokkit -s http -s ssh
sudo yum install postfix
sudo service postfix start
sudo chkconfig postfix on
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash
#此处http://gitlab.example.com 换成本机ip
sudo EXTERNAL_URL="http://gitlab.example.com" yum -y install
#初始化配置 gitlab
gitlab-ctl reconfigure
#启动 gitlab 服务
gitlab-ctl start