(1)禁用NGINX
vim /etc/gitlab/gitlab.rb
去掉nginx['enable'] = true前面的#,并将true改为false.如下图所示:
nginx['enable'] = false
(2)开启gitlab-workhorse监听TCP(我这里设置端口为8081)
gitlab_workhorse['listen_network']="tcp"
gitlab_workhorse['listen_addr']="0.0.0.0:8081"
(3)重新启动gitlab
gitlab-ctl reconfigure
gitlab-ctl restart