Skip to content

Instantly share code, notes, and snippets.

@jbrown
Created September 9, 2012 18:50
Show Gist options
  • Save jbrown/3686418 to your computer and use it in GitHub Desktop.
Save jbrown/3686418 to your computer and use it in GitHub Desktop.
Setup Postgres on OS X
brew install postgresql
initdb /usr/local/var/postgres -E utf8
psql -h localhost postgres
gem install passenger
brew install --env=std nginx --with-passenger
# start
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
# stop
pg_ctl -D /usr/local/var/postgres stop -s -m fast
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment