← 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

  1. Start: sudo systemctl start postgresql
  2. Check listen_addresses in postgresql.conf
  3. Check pg_hba.conf for auth rules

🔗 More PostgreSQL Issues