sudo yum install curl openssh-server openssh-clients postfix cronie -y
sudo service postfix start
sudo chkconfig postfix on
sudo lokkit -s http -s ssh
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el6/gitlab-ce-10.1.4-ce.0.el6.x86_64.rpm
rpm -ivh gitlab-ce-XXX.rpm
启动gitlab:sudo gitlab-ctl reconfigure
gitlab-ctl start|stop|status|restart