https://mirrors.tuna.tsinghua.edu.cn/gitlab-ee/ubuntu/pool/bionic/main/g/gitlab-ee/
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ee/ubuntu/pool/bionic/main/g/gitlab-ee/gitlab-ee_15.2.2-ee.0_amd64.deb
sudo dpkg -i gitlab-ee_15.2.2-ee.0_amd64.deb
sudo vim /etc/gitlab/gitlab.rb # 修改内容 # 1.启动访问地址 external_url 'http://192.168.1.200:82' # 2.nginx 监听的端口: nginx['listen_port'] = 82 sudo gitlab-ctl reconfigure
使用 root 和默认生成的密码进入系统再修改密码即可
gitlab-ctl status
#禁止 Gitlab 开机自启动 systemctl disable gitlab-runsvdir.service #启用 Gitlab 开机自启动 enable gitlab-runsvdir.service
另:参考地址:https://cloud.tencent.com/developer/article/1935402