Skip to content

Instantly share code, notes, and snippets.

@alvinlai
Created December 8, 2014 23:22
Show Gist options
  • Save alvinlai/b4cf0f92767b8fb8a687 to your computer and use it in GitHub Desktop.
Save alvinlai/b4cf0f92767b8fb8a687 to your computer and use it in GitHub Desktop.
Postgres on OS X
To have launchd start postgresql at login:
ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents
Then to load postgresql now:
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
Or, if you don't want/need launchctl, you can just run:
postgres -D /usr/local/var/postgres
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment