1 vim /etc/gitlab/gitlab.rb 2 修改 external_url 为自己想访问的域名 3 gitlab-ctl reconfigure 4 在hosts 文件 增加IP 域名 映射 5在浏览器输入域名 gitlab.test.com