目录
[3.1对于GitLab Enterprise Edition(EE):](#3.1对于GitLab Enterprise Edition(EE):)
[3.2对于GitLab Community Edition(CE):](#3.2对于GitLab Community Edition(CE):)
[4.1安装GitLab Enterprise Edition(EE):](#4.1安装GitLab Enterprise Edition(EE):)
[4.2安装GitLab Community Edition(CE):](#4.2安装GitLab Community Edition(CE):)
[5.1重新配置和重启 GitLab](#5.1重新配置和重启 GitLab)
1.更新系统软件包
sudo apt update
2.安装必要的依赖
sudo apt install -y curl openssh-server ca-certificates
3.添加GitLab源
3.1对于GitLab Enterprise Edition(EE):
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh | sudo bash
3.2对于GitLab Community Edition(CE):
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
4.安装GitLab
4.1安装GitLab Enterprise Edition(EE):
sudo apt install gitlab-ee
4.2安装GitLab Community Edition(CE):
sudo apt install gitlab-ce
5.遇到启动不起来的问题,试一下以下命令
5.1重新配置和重启 GitLab
sudo gitlab-ctl reconfigure
sudo gitlab-ctl restart