安装依赖
1  | #配置系统防火墙,把HTTP和SSH端口开放.  | 
下载安装GitLab包
GitLab下载地址:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el61
2wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el6/gitlab-ce-11.1.6-ce.0.el6.x86_64.rpm
rpm -Uvh gitlab-ce-11.1.6-ce.0.el6.x86_64.rpm
修改gitlab配置文件指定服务器ip和自定义端口
1  | vim /etc/gitlab/gitlab.rb  | 
创建nginx配置文件
1  | vim /etc/nginx/conf.d/gitlab.xxx.com.conf  | 
重载配置
1  | #重载配置  | 
打开浏览器访问gitlab.xxx.com