Last active
April 29, 2019 11:41
-
-
Save lordofthedanse/37e947692a811c5a86a657e81c0773f2 to your computer and use it in GitHub Desktop.
Restart PostgreSQL when getting not accepting TCP/IP connections on port 5432
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
Manually: | |
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log restart | |
With homebrew: | |
brew services restart postgresql (if postgres version is pinned (postgresql@10), then sub postgresql@10 for postgresql) | |
Can also | |
brew services stop postgresql | |
brew services start postgresql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment