更新你的系统‌:

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 EXTERNAL_URL="https://gitlab.example.com" apt install gitlab-ee

配置和启动GitLab‌:

1
2
3
Copy Code
sudo gitlab-ctl reconfigure
sudo gitlab-ctl start

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