可以,CentOS 是可以运行 GitLab 的,而且这是 GitLab 官方支持的主流平台之一。
下面给你几个关键点和注意事项:
GitLab 官方提供 Omnibus 安装包(.rpm),明确支持:
一条命令搞定,包含:
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
sudo EXTERNAL_URL="http://gitlab.example.com" yum install -y gitlab-ce
适合:
docker run -d \
--hostname gitlab.example.com \
-p 80:80 -p 443:443 -p 22:22 \
--name gitlab \
gitlab/gitlab-ce
CentOS 能跑 GitLab,CentOS 7 最稳,CentOS 8 不建议新用,内存别太小。
如果你愿意,可以告诉我:
我可以给你一套最合适的安装方案。