修改 VPS $VEID 中 /etc/sysctl.conf 內容如下
# Controls the default maxmimum size of a mesage queue
kernel.msgmnb = 65536
# Controls the maximum size of a message, in bytes
kernel.msgmax = 65536
# Controls the maximum shared segment size, in bytes
kernel.shmmax = 68719476736
# Controls the maximum number of shared memory segments, in pages
kernel.shmall = 4294967296
修改 VPS $VEID 中 /var/lib/pgsql/data/postgresql.conf 內容
shared_buffers = 512MB
重新啟動 VPS
vzctl restart $VEID
沒有留言:
張貼留言