Reputation: 1
I installed postgresql version 17.4 (Ubuntu 24.04). After attempt running sudo psql
I receive an error
psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: Connection refused
Is the server running locally and accepting connections on that socket?
I'm curious of the reason of this error. I tried to allow postgres port 5432/tcp with no result.
sudo ufw allow 5432/tcp
Upvotes: 0
Views: 18