【问题标题】:Postgres connection error in ubuntu and centosubuntu 和 centos 中的 Postgres 连接错误
【发布时间】:2019-03-13 18:00:29
【问题描述】:

我是 postgres 的新手。通过 ubuntu 和 centos 连接时出现此错误:

psql: 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.5432"?

【问题讨论】:

    标签: postgresql ubuntu centos7


    【解决方案1】:

    通过编辑 pg_hba.conf 文件中的 ipv4 条目来授予所有主机权限。 修改后重启postgresql服务。

    【讨论】:

      猜你喜欢
      • 2017-07-31
      • 1970-01-01
      • 2014-04-14
      • 2013-02-22
      • 1970-01-01
      • 1970-01-01
      • 2018-07-13
      • 2016-04-15
      • 2021-07-24
      相关资源
      最近更新 更多