参考文档:https://about.gitlab.com/downloads/#centos6
1.安装Postfix和openssh软件
[root@node1 ~]# yum install curl openssh-server openssh-clients postfix cronie
[root@node1 ~]# service postfix start
[root@node1 ~]# chkconfig postfix on
[root@node1 ~]# lokkit -s http -s ssh
2.安装Gitlab服务和包
[root@node1 ~]# curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
[root@node1 ~]# yum install gitlab-ce
[root@node1 ~]# curl -LJO https://packages.gitlab.com/gitlab/gitlab-ce/packages/el/6/gitlab-ce-XXX.rpm/download
[root@node1 ~]# rpm -i gitlab-ce-XXX.rpm
3.启动Gitlab服务
[root@node1 ~]# gitlab-ctl reconfigure
4.打开首页
http://IP/profile
Username: root
Password: 5iveL!fe
本文转自 z597011036 51CTO博客,原文链接:http://blog.51cto.com/tongcheng/1743200,如需转载请自行联系原作者