注意:gitlab-ce 镜像仅支持 x86-64 架构
首先信任 GitLab 的 GPG 公钥:
再选择你的 Debian/Ubuntu 版本,文本框中内容写进 /etc/apt/sources.list.d/gitlab-ce.list
/etc/apt/sources.list.d/gitlab-ce.list
安装 gitlab-ce:
新建 /etc/yum.repos.d/gitlab-ce.repo,内容为
/etc/yum.repos.d/gitlab-ce.repo
再执行