Getting error while trying to login to Database

We are trying to connect to Database with port 1521 we are getting the error as like below.

-bash-4.2$ ps-bash-4.2$ psql -p 1521
psql: error: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket “/var/run/postgresql/.s.PGSQL.1521”?

We have 2 ports hosted on the machine and we are able to login to other port with out any issue, Could some one help me as we are stuck with production .

first of all, this is a german speaking forum. 2nd, try to add -h localhost or -h server_ip.

Sorry , I feel this looks best hence posted on this forum.

I did the same getting the same error

The default port is 5432 - did you actually change that? If you did, then most likely Postgres service isn’t running.

Dieses Thema wurde automatisch 60 Tage nach der letzten Antwort geschlossen. Es sind keine neuen Nachrichten mehr erlaubt.