Created
July 9, 2013 09:11
-
-
Save davidkelley/5955885 to your computer and use it in GitHub Desktop.
Commands to fix the PostgreSQL fatal shared memory bug in OS X
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Sudo system control to fix memory in current session | |
sudo sysctl -w kern.sysv.shmall=65536 | |
sudo sysctl -w kern.sysv.shmmax=16777216 | |
# Fix memory bug for future sessions | |
cat << 'EOF' >> /etc/sysctl.conf | |
kern.sysv.shmall=65536 | |
kern.sysv.shmmax=16777216 | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment