Gitlab服务不能启动postgresql - Go语言中文社区

Gitlab服务不能启动postgresql


源博文:http://www.zxmseed.com/blog/911081

1、查看启动的服务

-sh-4.1$ gitlab-ctl status
warning: gitlab-workhorse: unable to open supervise/ok: access denied
warning: logrotate: unable to open supervise/ok: access denied
warning: nginx: unable to open supervise/ok: access denied
warning: redis: unable to open supervise/ok: access denied
warning: sidekiq: unable to open supervise/ok: access denied
warning: unicorn: unable to open supervise/ok: access denied

发现没有postgresql项

 

2、查看postgresql报错

[root@localhost ~]# su - gitlab-psql
-sh-4.1$ cat /var/log/gitlab/postgresql/current
postgresql启动异常,To reduce the request size (currently 2123759616 bytes), reduce PostgreSQL's shared memory usage, perhaps by reducing shared_buffers
显示共享内存不足

3、调整postgresql配置文件

/var/opt/gitlab/postgresql/data/postgresql.conf

修改:shared_buffers 为合适的大小:
shared_buffers = 1024 # min 128kB

4、重启gitlab

gitlab-ctl start

转载于:https://www.cnblogs.com/huangyanqi/p/11018957.html

版权声明:本文来源CSDN,感谢博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/weixin_34110749/article/details/94319129
站方申明:本站部分内容来自社区用户分享,若涉及侵权,请联系站方删除。
  • 发表于 2020-03-07 15:21:00
  • 阅读 ( 1635 )
  • 分类:

0 条评论

请先 登录 后评论

官方社群

GO教程

猜你喜欢