Gitlab安装后 500 错误 PostGre数据库无法启动

时间:2017-03-06 11:14:47   收藏:0   阅读:2301

用Gitlab官方包 Omnibus GitLab RPM包安装后 Postgres 数据库无法启动,

通过sudo gitlab-ctl reconfigure启动时, 提示 [execute] pgsql:could not connect to server:

通过sudo gitlab-ctl start启动时, 提示 timeout:down:postgresql:ls, normally up, want up

查看/var/log/gitlab/postgres/current日志发现,

 FATAL:  could not create shared memory segment: Cannot allocate memory

是由于共享内存无法分配造成的

修改gitlab配置文件 /etc/gitlab/gitlab.rb, 例如

postgresql[‘shared_buffers‘] = "100MB"

重新执行sudo gitlab-ctl reconfigure gitlab可以正常启动了

 

 

原文:http://www.cnblogs.com/donaldjohn/p/6508618.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!