jiaoye6789
jiaoye6789
采纳率70.4%
2016-11-01 09:04 阅读 3.0k
已采纳

Postgresql远程连接设置

pg_hba.conf

已经修改

IPv4 local connections:

host all all 127.0.0.1/32 trust
host all all 192.168.1.0/24 md5

postgresql.conf
listen_addresses = '*' # what IP address(es) to listen on;

可是还是会提示
Unable to connect to server:

could not connect to server: Connection timed out (0x0000274C/10060)
Is the server running on host "192.168.1.205" and accepting
TCP/IP connections on port 5432?

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

1条回答 默认 最新

  • 已采纳
    oyljerry oyljerry 2016-11-01 10:54

    查看你的服务器端postgresql进程启动了,并且侦听在5432端口等。可以用netstat查看一下

    点赞 评论 复制链接分享

相关推荐