远程连接postgres,出现server doesnt listen

已修改pg_hdb.conf中的

# IPv4 local connections:
    host    all             all             127.0.0.1/32            md5
    在下面添加一行代码:    
    host    all             all             0/0            md5  //所有用户都能访问
 
解决办法:关闭服务器电脑的防火墙后,连接成功。
原文地址:https://www.cnblogs.com/fatherZyl/p/4323428.html