Install Postgress

Prerequisites

  • OS: Mac
  • Homebrew has been installed (for instructions click HERE)

Steps

Open up a terminal

Use brew to install postgress

brew install postgres

Create the LaunchAgent Directory

mkdir -p ~/Library/LaunchAgents

Create a symbolic link to the postgres plist (property list) file

ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents

Load the plist into the launch control service.

launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist

 

Your PostgreSQL should now start up automatically when your Mac starts up.

Verify that postgres got installed

which psql
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s