1安装
$sudo yum install curl policycoreutils openssh-server openssh-clients
$sudo systemctl enable sshd
$sudo systemctl start sshd
$sudo yum install postfix
$sudo systemctl enable postfix
$sudo systemctl start postfix
$sudo firewall-cmd --permanent --add-service=http
$sudo systemctl reload firewalld
2添加yum源
$curl -sS http://packages.gitlab.com.cn/install/gitlab-ce/script.rpm.sh | sudo bash
$sudo yum install gitlab-ce
3启动gitlab
$sudo gitlab-ctl reconfigure