vim /etc/yum.repos.d/gitlab-ce.repo
[gitlab-ce]
name=Gitlab CE Repository
baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el$releasever/
gpgcheck=0
enabled=1
安裝GitLab社區版
yum -y install gitlab-ce #自動安裝最新版
yum -y install gitlab-ce-x.x.x #安裝指定版本