GitLab构建502问题总结GitLab构建502问题总结原文图:补充liunx系统具有两个相同gitlab-workhorse时流程的解决方案
GitLab构建502问题总结
参考: https://blog.csdn.net/jacka 654321/article/details/80629824
unicorn服务无法启动,出现502错误,因为8080端口正在使用。 请更改unicorn端口
虚拟机将打开gitlab.rb
输入vim /etc/gitlab/gitlab.rb命令状态/unicorn [‘port’],按Enter进入搜索状态,按n键可以看到unicorn [‘port’]=8080
unicorn [ ' port ' ]=根据9090原文图:
然后,可以在gitlab-ctl reconfigure中重新启动配置,在sudo gitlab-ctl stop中停止服务,然后在gitlab-ctl start中直接启动服务,即可进行访问。
正式的提案
sudogitlab-ctlrestartsidekiqsudogitlab-ctlhupunicorn # # # # # # # # # # # # # # # # # ctlhupunicorn
GitLab会更改默认端口
打开配置目录,在vim中更改:
CD/var/opt/git lab/nginx/confvimgitlab-http.conf #在本示例中,我们将80个端口更改为8040
server { listen *:8084; -更改端口server_name localhost; 补充liunx系统具有两个相同的gitlab-workhorse进程的解决方案是,两个gitlab-workhorse进程(包含8080个端口)开始更改以前unicorn使用的端口首先停止在gitlab服务上,kill放慢gitlab-workhorse的进程
然后检查gitlab配置文件/etc/gitlab/gitlab.rb以找到与8080端口相关的配置,并将8080端口更改为与unicorn相同的端口
将git lab _ work horse [ ' auth _ back end ' ]=' http://localhost 33608080 '修改为git lab _ work horse [ ' auth _ back end ' ]=' 只需在千兆位la B- CTL reconfigure中重新启动配置,在sudo千兆位la B- CTL stop中停止服务,然后在千兆位la B- CTL start中直接启动服务即可访问。
在此,特别感谢jacka654321、weinichendian先生提供的文档