【发布时间】:2016-08-05 16:39:28
【问题描述】:
我有安装 PostgreSQL 的 VPS 它使用控制台腻子工作
但如果我尝试在我的家用计算机上使用 pgAdmin 3 进行连接,它是 打印错误
无法连接到服务器:连接被拒绝 (0x0000274D/10061) 服务器是否在主机“x.x.x.x”上运行并接受 TCP/IP 端口 5432 上的连接?
接下来我的配置
postgresql.conf
listen_addresses = '*' what IP address(es) to listen on;
port = 5432 # (change requires restart)
和 pg_hba.conf(我尝试所有组合 localhost,192.168... 等)
# IPv4 local connections:
host all all 127.0.0.1/32 md5
host all all all md5
# IPv6 local connections:
【问题讨论】:
-
尝试使用IP,而不是主机名“ip server”
-
我用的是真实ip,我改了
-
好吧,如果你用 putty 连接 - 我假设你 ssh 到 VPS,然后在本地连接 - 对吗?.. 然后检查连接是否根本没有防火墙 - 尝试从 putty 连接到外部 IP 上的 postgres会议...这是开始
标签: sql database postgresql