1. 先修改本地的IP地址
vim /etc/sysconfig/network-scripts/ifcfg-eth0TYPE=EthernetBOOTPROTO=staticNAME=eth0DEVICE=eth0ONBOOT=yesIPADDR=192.168.10.100NETMASK=255.255.255.0GATEWAY=192.168.10.1
systemctl restart network
2. 修改gitlab.rb,中的WEB页面地址
# vim /etc/gitlab/gitlab.rb
external_url 'http://192.168.10.100'
3. 修改gitlab仓库地址
vim /var/opt/gitlab/gitlab-rails/etc/gitlab.yml
gitlab:
## Web server settings (note: host is the FQDN, do not include http://)
host: data (修改为 host: 192.168.10.100)
port: 80
https: false
……
email_from: gitlab@192.168.10.100
4. 重启gitlab
gitlab-ctl restart