加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

在PostgreSQL的MAC OS X 10.6上设置SHMMAX等值

发布时间:2020-12-13 16:42:42 所属栏目:百科 来源:网络整理
导读:我试图在本地机器上启动PostgreSQL服务器。 但是我收到一条错误消息: FATAL: could not create shared memory segment: Invalid argumentDETAIL: Failed system call was shmget(key=5432001,size=9781248,03600).HINT: This error usually means that Post
我试图在本地机器上启动PostgreSQL服务器。
但是我收到一条错误消息:
FATAL:  could not create shared memory segment: Invalid argument
DETAIL:  Failed system call was shmget(key=5432001,size=9781248,03600).
HINT:  This error usually means that PostgreSQL's request for a shared memory segment exceeded your kernel's SHMMAX parameter.  You can either reduce the request size or reconfigure the kernel with larger SHMMAX.  To reduce the request size (currently 9781248 bytes),reduce PostgreSQL's shared_buffers parameter (currently 1024) and/or its max_connections parameter (currently 13).
If the request size is already small,it's possible that it is less than your kernel's SHMMIN parameter,in which case raising the request size or reconfiguring SHMMIN is called for.
The PostgreSQL documentation contains more information about shared memory configuration.

我搜索并查看文档,但是我尝试关于设置kern.sysv.shmmax和kern.sysv.shmall的一切工作正常。
雪豹的正确设置是什么?我安装postgres与macports。

警告:这个答案已被OS X的较新版本所取消。请参考Paul Legato下面的答案。

在Mac OS X中,您无法在系统启动后更改shmmax。您需要编辑/ etc / rc或/etc/sysctl.conf,并记住它需要4096的倍数。
http://www.postgresql.org/docs/8.4/static/kernel-resources.html

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读