Default settings /etc/sysctl.conf for Mac OS X Snow Leopard?

I tried installing PostgreSQL 9.1.2 for Mac OS X 10.6, and he asked me to edit the sysctl.conf file inside the / etc / directory so that it could use more of the shared memory that PostgreSQL requested.

I went ahead, edited the file, saved it, reloaded, and then on the login screen I was asked to log in as a safe boot for some reason, I logged in, and the Internet did not seem to work, and the dock menu The station was laggy.

So, it was pretty obvious that this was due to the sysctl.conf file that I edited before rebooting, so I went back to the / etc directory and deleted the sysctl.conf file, thinking that it would automatically create a new sysctl.conf with the settings for default, but it wasn’t, even after rebooting.

So, now I am almost left without the sysctl.conf file, I read the Mac Developer documentation for this file, and it did not say much. I know that I probably shouldn't bother with files that I don’t have, but I really wanted PostgreSQL to work for my local Ruby on Rails development.

Anything in this section would be helpful.

+5
source share
2 answers

Mine contains the following:

kern.sysv.shmmax=134217728
kern.sysv.shmmin=1
kern.sysv.shmmni=256
kern.sysv.shmseg=64
kern.sysv.shmall=32768

, , - , Snow Leopard.

+1

/etc/sysctl.conf OS X 10.7.2 (Lion).


Postgres Homebrew.

XCode :

Homebrew

ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"

Postgres

brew update; brew install postgres

Postgres

initdb /usr/local/var/postgres

Postgres

mkdir -p ~/Library/LaunchAgents
cp /usr/local/Cellar/postgresql/9.1.2/homebrew.mxcl.postgresql.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
+7

All Articles