1抱慌、 編輯gitlab.yml配置文件
vim /opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml
找到host,并修改為你要配置的域名或IP
## GitLab settings
gitlab:
## Web server settings (note: host is the FQDN, do not include http://)
host: 192.168.0.201
port: 80
https: false
2强经、 編輯gitlab.rb文件
vim /etc/gitlab/gitlab.rb
找到external_url寺渗,修改成對(duì)應(yīng)的域名或IP
## Url on which GitLab will be reachable.
## For more details on configuring external_url see:
## https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/settings/configuration.md#configuring-the-external-url-for-gitlab
external_url 'http://192.168.0.201'
3信殊、 重啟GitLab服務(wù)
gitlab-ctl restart