繁体   English   中英

pgadmin连接到postgresql;错误:服务器未监听

[英]pgadmin connecting to postgresql ;error: server not listening

我正在尝试在pgAdmin中进行新的服务器注册,但出现此错误:

“服务器未监听”

服务器的IP地址为:XYZW

在pg_hba.conf中,我将访问设置为:

# TYPE  DATABASE        USER            ADDRESS                 METHOD
  # "local" is for Unix domain socket connections only
    local   all             all                                     peer
  # IPv4 local connections:
  host    all             all             0.0.0.0/0          md5
  host    all             all             127.0.0.1/32            md5

 # IPv6 local connections:
    host    all             all             ::1/128                 ident

当我运行时:su postgres然后:psql -h XYZW -d test -U test没有错误。

我该如何解决错误。

谢谢

所以我重新安装了pgadmin3,它工作正常。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM