但是我收到一条错误消息:
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 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。
在Mac OS X中,您无法在系统启动后更改shmmax。您需要编辑/ etc / rc或/etc/sysctl.conf,并记住它需要4096的倍数。
http://www.postgresql.org/docs/8.4/static/kernel-resources.html
以上是内存溢出为你收集整理的在PostgreSQL的MAC OS X 10.6上设置SHMMAX等值全部内容,希望文章能够帮你解决在PostgreSQL的MAC OS X 10.6上设置SHMMAX等值所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)