Skip to content

Instantly share code, notes, and snippets.

@chadmoone
Last active August 29, 2015 13:56
Show Gist options
  • Save chadmoone/9256478 to your computer and use it in GitHub Desktop.
Save chadmoone/9256478 to your computer and use it in GitHub Desktop.
Installing Postgresql

#Installing PostgreSQL#

##Drag-and-Drop Install##

  • Download Postgres.app
  • Drag to Applications folder and double-click

##Full-Beard Install##

  • Update homebrew:
    • $ brew update
  • Install formula:
    • $ brew install postgresql
  • Initialize database:
    • $ initdb /usr/local/var/postgresql
  • Set Postgres to run automatically on startup:
    • $ ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents
  • Alternately, you can run Postgres manuaally (not reccomended):
    • $ postgres -D /usr/local/var/postgres
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment