目录
1.找到opt/gitlab/embedded/service/gitlab-rails/config目录,打开gitlab.yml
1.找到opt/gitlab/embedded/service/gitlab-rails/config目录,打开gitlab.yml
cd /opt/gitlab/embedded/service/gitlab-rails/config
sudo vi gitlab.yml
2.修改地址和端口
3.重启gitlab
sudo gitlab-ctl restart