sudo apt-get update
sudo apt-get install curl openssh-server ca-certificates postfix
选Internet Site即可
输入邮件名
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
sudo EXTERNAL_URL="http://gitlab.example.com" apt-get install gitlab-ce
sudo gitlab-ctl reconfigure
想要外部访问需要配置域名
sudo nano /etc/gitlab/gitlab.rb
这个配置文件内容基本都是关闭的,所以不需要找到配置项的位置,直接在开头添加即可
external_url
项改为对外域名即可
nginx['listen']
项改为对外端口即可
sudo gitlab-ctl reconfigure sudo gitlab-ctl restart sudo gitlab-ctl status
重启会有延迟,打开页面可能会报502,等十几秒再去查看即可
如果无法打开页面,防火墙打开对外的端口即可
本文链接:https://blog.crazylei.com/art/e637d556
版权声明: 本博客所有文章除特别声明外,均采用CC BY 4.0 CN协议 许可协议。转载请注明出处!
正在加载评论...