Skip to content

Instantly share code, notes, and snippets.

@lordofthedanse
Last active April 29, 2019 11:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lordofthedanse/37e947692a811c5a86a657e81c0773f2 to your computer and use it in GitHub Desktop.
Save lordofthedanse/37e947692a811c5a86a657e81c0773f2 to your computer and use it in GitHub Desktop.
Restart PostgreSQL when getting not accepting TCP/IP connections on port 5432
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