我正在慢慢地教自己django,我正在使用postgres 9.2
以前,大约2周前,我已成功通过自制软件安装并创建了我的数据库。
现在我输入
postgres -D /usr/local/var/postgres
我得到了这个结果
FATAL: could not create shared memory segment: Invalid argument
DETAIL: Failed system call was shmget(key=5432001, size=32374784, 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 32374784 bytes), reduce PostgreSQL's shared memory usage, perhaps by reducing shared_buffers or max_connections.
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.
与此同时,我确实更改了/ect/sysctl.conf中的内存配置并在更改后重新启动 - 但我仍然遇到同样的错误。
为什么会发生这种情况,我该如何阻止它呢? (如果这有帮助的话,我正在使用Mac OS X Mountain Lion)