Created
November 14, 2015 23:11
-
-
Save wkoszek/c348134362daf60c7e38 to your computer and use it in GitHub Desktop.
homebrew_debug
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
wk:~> sudo bash | |
Password: | |
bashrc | |
bash: /Users/root/.travis/travis.sh: No such file or directory | |
bash-3.2# brew uninstall | |
This command requires a keg argument | |
bash-3.2# | |
bash-3.2# brew uninstall postgres | |
Uninstalling /usr/local/Cellar/postgresql/9.4.5... (3021 files, 40M) | |
bash-3.2# ps axuw | grep postgres | |
root 24965 0,0 0,0 2432772 656 s010 S+ 3:15 0:00.00 grep postgres | |
wkoszek 24805 0,0 0,0 2468112 608 ?? Ss 3:12 0:00.00 postgres: stats collector process | |
wkoszek 24804 0,0 0,0 2612968 1504 ?? Ss 3:12 0:00.00 postgres: autovacuum launcher process | |
wkoszek 24803 0,0 0,0 2604776 724 ?? Ss 3:12 0:00.01 postgres: wal writer process | |
wkoszek 24802 0,0 0,0 2612968 1764 ?? Ss 3:12 0:00.04 postgres: writer process | |
wkoszek 24801 0,0 0,0 2604776 776 ?? Ss 3:12 0:00.00 postgres: checkpointer process | |
wkoszek 24799 0,0 0,2 2604776 14572 ?? S 3:12 0:00.02 /usr/local/opt/postgresql/bin/postgres -D /usr/local/var/postgres -r /usr/local/var/postgres/server.log | |
bash-3.2# kill -9 24799 | |
bash-3.2# ps axuw | grep postgres | |
root 24976 0,1 0,0 2432772 656 s010 S+ 3:15 0:00.00 grep postgres | |
bash-3.2# ps axuw | grep postgres | |
root 24986 0,0 0,0 2432772 656 s010 S+ 3:15 0:00.00 grep postgres | |
bash-3.2# brew install postgres | |
==> Downloading https://homebrew.bintray.com/bottles/postgresql-9.4.5.yosemite.bottle.tar.gz | |
Already downloaded: /Library/Caches/Homebrew/postgresql-9.4.5.yosemite.bottle.tar.gz | |
==> Pouring postgresql-9.4.5.yosemite.bottle.tar.gz | |
==> Caveats | |
If builds of PostgreSQL 9 are failing and you have version 8.x installed, | |
you may need to remove the previous version first. See: | |
https://github.com/Homebrew/homebrew/issues/2510 | |
To migrate existing data from a previous major version (pre-9.4) of PostgreSQL, see: | |
https://www.postgresql.org/docs/9.4/static/upgrading.html | |
To have launchd start postgresql at login: | |
ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents | |
Then to load postgresql now: | |
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist | |
Or, if you don't want/need launchctl, you can just run: | |
postgres -D /usr/local/var/postgres | |
==> Summary | |
🍺 /usr/local/Cellar/postgresql/9.4.5: 3021 files, 40M | |
bash-3.2# ps axuw | grep postgres | |
root 27240 0,1 0,0 2441988 676 s010 S+ 3:16 0:00.00 grep postgres | |
wkoszek 27088 0,0 0,0 2468112 604 ?? Ss 3:16 0:00.00 postgres: stats collector process | |
wkoszek 27087 0,0 0,0 2612968 1428 ?? Ss 3:16 0:00.00 postgres: autovacuum launcher process | |
wkoszek 27086 0,0 0,0 2612968 720 ?? Ss 3:16 0:00.00 postgres: wal writer process | |
wkoszek 27085 0,0 0,0 2612968 808 ?? Ss 3:16 0:00.00 postgres: writer process | |
wkoszek 27084 0,0 0,0 2612968 776 ?? Ss 3:16 0:00.00 postgres: checkpointer process | |
wkoszek 27082 0,0 0,2 2612968 14596 ?? S 3:16 0:00.02 /usr/local/opt/postgresql/bin/postgres -D /usr/local/var/postgres -r /usr/local/var/postgres/server.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment