背景:
将127.0.0.1更换为192.168.1.108!!!
解决步骤:
1、将127.0.0.1修改为自己想要的!
vi /opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml
production: &base
#
# 1. GitLab app settings
# ==========================
## GitLab settings
gitlab:
## Web server settings (note: host is the FQDN, do not include http://)
#host: 127.0.0.1
host: 192.168.1.108
port: 9090
https: false
2、重启服务生效:
gitlab-ctl restart