Created
September 9, 2012 18:50
-
-
Save jbrown/3686418 to your computer and use it in GitHub Desktop.
Setup Postgres on OS X
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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