gitlab mysql启动不了_Gitlab服务不能启动postgresql

Gitlab 突然不能查看文件内容,服务器上查看状态gitlab-ctl status

发现postgresql未正常启动,查看日志文件:/var/log/gitlab/postgresql/current

异常信息:2017-04-24_09:32:42.77395       The PostgreSQL documentation contains more information about shared memory configuration.

2017-04-24_09:32:43.78631 FATAL:  could not create shared memory segment: Cannot allocate memory

2017-04-24_09:32:43.78633 DETAIL:  Failed system call was shmget(key=5432001, size=2123759616, 03600).

2017-04-24_09:32:43.78633 HINT:  This error usually means that PostgreSQL's request for a shared memory segment exceeded available memory or swap space, or exceeded your kernel's SHMALL parameter.  You can either reduce the request size or reconfigure the kernel with larger SHMALL.  To reduce the request size (currently 2123759616 bytes), reduce PostgreSQL's shared memory usage, perhaps by reducing shared_buffers or max_connections.

初步判断应该是共享内存不够;调整postgresql配置文件/var/opt/gitlab/postgresql/data/postgresql.conf

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

重启:gitlab-ctl start

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值