添加仓库源头
curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
安装
sudo apt-get install gitlab-ce=15.0.3-ce.0
添参考链接:https://packages.gitlab.com/gitlab/gitlab-ce/packages/ubuntu/bionic/gitlab-ce_15.0.3-ce.0_amd64.deb
参考链接:https://docs.gitlab.cn/jh/install/next_steps.html
配置
编辑 /etc/gitlab/gitlab.rb
external_url "https://example.com/gitlab" //修改url地址
sudo gitlab-ctl reconfigure //更新配置
sudo gitlab-ctl restart //chongqigitlab