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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM