CentOS 7 安装 GitLab

https://about.gitlab.com/downloads/#centos7
国内镜像:
https://mirror.tuna.tsinghua.edu.cn/help/gitlab-ce/
vi /etc/yum.repos.d/gitlab-ce.repo
[gitlab-ce]
name=gitlab-ce
baseurl=http://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7
repo_gpgcheck=0
gpgcheck=0
enabled=1
gpgkey=https://packages.gitlab.com/gpg.key

sudo yum makecache
sudo yum install gitlab-ce

vi /etc/gitlab/gitlab.rb
external_url 'http://localhost' 修改为自己的IP地址或域名
如external_url 'http://testgitlab'

sudo gitlab-ctl reconfigure

在浏览器中访问http://testgitlab/,会自动跳转到root账户密码重置页面,输入新密码,登陆