解决方法如下:
# gitlab-ctl stop
# vi /etc/gitlab/gitlab.rb (取消注释并修改端口)
unicorn['port'] = 8801
# gitlab-ctl reconfigure (重新生成配置)
# gitlab-ctl restart
# lsof -i:8081 (check whether unicorn has started properly)
有时候修改配置后要不断刷新才能生效
解决方法如下:
# gitlab-ctl stop
# vi /etc/gitlab/gitlab.rb (取消注释并修改端口)
unicorn['port'] = 8801
# gitlab-ctl reconfigure (重新生成配置)
# gitlab-ctl restart
# lsof -i:8081 (check whether unicorn has started properly)
有时候修改配置后要不断刷新才能生效