GitLab-修改IP

GitLab-修改IP

机器IP变了,需要重新修改IP

操作步骤

1
2
3
4
5
6
7
8
9
10
11
## 停止gitlab
gitlab-ctl stop

vi /etc/gitlab/gitlab.rb
## 修改为正确的IP、域名、或端口 ##
external_url 'http://10.77.114.100:8690'
nginx['listen_port'] = 8690

## 重新配置并启动gitlab
gitlab-ctl reconfigure
gitlab-ctl start