我正在从Win迁移到Mac,并通过Homebrew在MacX10.8.3上安装了PostgreSql 9.2.4
运行initdb命令时
initdb /usr/local/var/postgres -E utf8
我得到以下错误
DETAIL: Failed system call was shmget(key=1, size=2072576, 03600).
HINT: This error usually means that PostgreSQL's request for a shared memory segment exceeded
available memory
我正在尝试启动本地计算机上的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 SHMM
嘘,嘘,我就是赢不了;)
我尝试过对我的/etc/sysctl.d/30-postgresql-shm.conf文件进行一些修改,去掉注释,稍微修改一下kernel.shmmax和kernel.shmall,但这似乎没有什么帮助。
#/etc/sysctl.d/30-postgresql-shm.conf
# Shared memory settings for PostgreSQL
# Note that if another program uses shared memory as well, you will have to
# coordinate the size settin