Last active
May 14, 2016 15:49
-
-
Save ncabrerax/9475f6ebf7cfffc5d6f9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
Terminal: | |
$ brew install postgresql | |
/usr/local/Cellar/postgresql/9.5.2 | |
/usr/local/var/postgres | |
To have launchd start postgresql now and restart at login: | |
$ brew services start postgresql | |
$ brew services stop postgresql | |
$ initdb /usr/local/var/postgres -E utf8 | |
$ sudo gem install lunchy | |
$ mkdir -p ~/Library/LaunchAgents | |
$ cp /usr/local/Cellar/postgresql/9.5.2/homebrew.mxcl.postgresql.plist ~/Library/LaunchAgents/ | |
$ lunchy start postgres | |
$ lunchy stop postgres | |
$ psql -d postgres | |
$ create user postgres with superuser encrypted password 'gobierna'; | |
$ nano /usr/local/var/postgres/postgresql.conf | |
$ nano /usr/local/var/postgres/pg_hba.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment