Skip to content

Instantly share code, notes, and snippets.

@lightscalar
Created May 8, 2013 13:37
Show Gist options
  • Select an option

  • Save lightscalar/5540463 to your computer and use it in GitHub Desktop.

Select an option

Save lightscalar/5540463 to your computer and use it in GitHub Desktop.
Getting POSTGRES launched

After installing the latest & greatest:

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:

    pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment