0

I installed PostgreSQL on Linux, how is indicated in Debian Wiki

After installation I run the following commands:

# su - postgres
$ psql

And I got the following error:

psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?

I found I solutions, but for Mac

Postgres could not connect to server https://dba.stackexchange.com/questions/75214/psql-could-not-connect-to-server-no-such-file-or-directory

How can I solve this issue in Linux?

Distribution details:

Distributor ID : Debian
Description    : Debian GNU/Linux 8.7 (jessie)
Release        : 8.7
Codename       : jessie

PostgreSQL     : 9.4
jignesh Vadadoriya
  • 3,244
  • 3
  • 18
  • 29
gvd
  • 1,482
  • 6
  • 32
  • 58

0 Answers0