更新你的系统‌:

1
2
sudo apt update
sudo apt upgrade

添加GitLab仓库‌:

1
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh | sudo bash

安装GitLab‌:

1
sudo apt install gitlab-ee

配置和启动GitLab‌:

1
2
3
sudo vi /etc/gitlab/gitlab.rb
sudo gitlab-ctl reconfigure
sudo gitlab-ctl start

访问GitLab‌:
在浏览器中访问https://gitlab.example.com。