gitlab修改IP地址及仓库地址
将IP修改为192.168.10.100,操作方法
1. 先修改本地的IP地址 vim /etc/sysconfig/network-scripts/ifcfg-eth0
TYPE=Ethernet
BOOTPROTO=static
NAME=eth0
DEVICE=eth0
ONBOOT=yes
IPADDR=192.168.10.100
NETMASK=255.255.255.0
GATEWAY=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: 192.168.10.100 port: 80 https: false …… email_from: gitlab@192.168.10.100 4. 重启gitlab gitlab-ctl restart