更新你的系统:
bash
sudo apt update
sudo apt upgrade
添加GitLab仓库:
bash
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh | sudo bash
安装GitLab:
bash
sudo EXTERNAL_URL="https://gitlab.example.com" apt install gitlab-ee
配置和启动GitLab:
bash
Copy Code
sudo gitlab-ctl reconfigure
sudo gitlab-ctl start
访问GitLab:
在浏览器中访问https://gitlab.example.com。