在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的一切工作正常。
警告:这个答案已被OS X的较新版本所取消。请参考Paul Legato下面的答案。
在Mac OS X中,您无法在系统启动后更改shmmax。您需要编辑/ etc / rc或/etc/sysctl.conf,并记住它需要4096的倍数。 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- Oracle插入随机生成的数据行
- ruby-on-rails – Ruby on rails 3:link_to:remote => tr
- ApplicationContext.xml配置文件
- 4.2 虚拟成员函数
- 设计模式系列之迭代器模式(Iterator Pattern)——遍历聚合对
- 正则的进阶表达——找出(不)包含特定字符串
- Error: The processing instruction target matching “[xX
- NSPredicate的使用方式
- ruby – 处理一个带有可选参数的方法,后跟一个关键字参数列
- CouchDB创始人加入Salesforce.com,从事非常“酷炫”的基础