After fresh installation of PostgreSQL on Linux Unable to connect to database.

I installed Postgres 9.2 on Linux RHEL 7.3 using PostgreSQL binary. I am unable to connect to the PostgreSQL database. Error:

I installed Postgres 9.2 on Linux RHEL 7.3 using PostgreSQL binary. I am unable to connect to the PostgreSQL database. Error:

$psql postgres
 
psql: Could not connect to the server: No such file or directory
 
              Is the server running locally and accepting
 
              connectioni on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
like0

Answers

This question hasn't been answered yet. Login or create an account to be the first to answer it!