目录
1.更新系统软件包
2.安装必要的依赖
3.添加GitLab源
3.1对于GitLab Enterprise Edition(EE):
3.2对于GitLab Community Edition(CE):
4.安装GitLab
4.1安装GitLab Enterprise Edition(EE):
4.2安装GitLab Community Edition(CE):
5.遇到启动不起来的问题,试一下以下命令
5.1重新配置和重启 GitLab
6.在路径/etc/gitlab/initial_root_password下找到管理员的初始密码
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