记一次gitlab打开页面502报错

记一次gitlab打开页面502报错_第1张图片

 

修改vim /etc/gitlab/gitlab.rb

 

我的配置贴上,解决这个问题的

external_url 'http://x.x.x.x:8099'gitlab_rails['time_zone'] = 'Asia/Shanghai'
gitlab_workhorse['auth_backend'] = "http://localhost:8091"
unicorn['enable'] = true
unicorn['worker_timeout'] = 90
unicorn['worker_processes'] = 3
unicorn['port'] = 8091
puma['enable'] = false
postgresql['shared_buffers'] = "256MB"
postgresql['max_connections'] = 200
 

保存之后,重启

gitlab-ctl reconfigure
gitlab-ctl restart

注意,要关闭防火墙,selinux,另外注意内存使用情况。

你可能感兴趣的:(gitlab,502报错,linux,centos,服务器)