← All Kali Issues
PostgreSQL
Connection refused
D Database
High
🔴 Error Message
psql: could not connect to server: Connection refused
📖 What This Means
Service not running or listening on wrong interface.
🔧 Step-by-Step Fix
- Start: sudo systemctl start postgresql
- Check listen_addresses in postgresql.conf
- Check pg_hba.conf for auth rules