Skip to content

Instantly share code, notes, and snippets.

@larrybuch
Created April 15, 2016 16:51
Show Gist options
  • Save larrybuch/e797fa7f4c55135e8a557887dcfe4556 to your computer and use it in GitHub Desktop.
Save larrybuch/e797fa7f4c55135e8a557887dcfe4556 to your computer and use it in GitHub Desktop.
starting and stopping postgres
// stopping a postgres server
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log stop
// starting a postgres server
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