官方文档:https://about.gitlab.com/install/#centos-7
gitlab有商用版本(gitlab-ee)和免费版本(gitlab-ce),安装的时候要注意:
安装:
免费版本
# 添加GitLab包仓库并安装包
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
# 安装
yum install gitlab-ce -y
商用版本:
# 添加GitLab包仓库并安装包
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash
# 安装
yum install gitlab-ee -y