Fix: psql: error: connection to server refused (PostgreSQL)
How to fix 'could not connect to server: Connection refused', 'psql: error: connection to server at localhost port 5432 failed', and other PostgreSQL connection refused errors on Linux, macOS, Windows, and Docker.