安装gitlab社区版
安装环境
系统版本:CentOS Linux release 7.9.2009 (Core)
1. 配置yum源
vim /etc/yum.repos.d/gitlab-ce.repo
[gitlab-ce]
name=gitlab-ce
baseurl=http://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el6
Repo_gpgcheck=0
Enabled=1
Gpgkey=https://packages.gitlab.com/gpg.key
2. 更新本地yum缓存
sudo yum makecache
3. 安装Gitlab社区版
sudo yum install gitlab-ce #自动安装最新版
sudo yum install gitlab-ce-x.x.x #安装指定版本
注意:
如果无法安装,提示:The GPG keys listed for the “gitlab-ce” repository are already installed but they are not correct for this package.Check that the correct key URLs are configured for this repository.
4. 修改 /etc/yum.repos.d/gitlab-ce.repo 后再次安装

本文详细介绍了如何在CentOS7.9系统上通过配置yum源并安装GitLab社区版,包括安装步骤、遇到问题的解决方法,以及GitLab的常用命令。还提供了CentOS6.x使用阿里云镜像的yum源示例。
最低0.47元/天 解锁文章
4145

被折叠的 条评论
为什么被折叠?



