【发布时间】:2012-09-05 17:38:08
【问题描述】:
我最近刚刚通过 SSH 在我们的服务器上安装了 PostgreSQL。安装成功,直到我尝试在我的 Windows 机器上使用 pgAdmin 连接到它。我收到了这种错误:
无法连接到服务器:连接被拒绝 (0x0000274D/10061) 是 在主机“xxx.xxx.xxx.xxx”上运行并接受 TCP/IP 的服务器 端口 5432 上的连接?
xxx.xxx.xxx.xxx = 我的服务器的公共 IP。
文档建议可以通过在 /etc/postgresql/9.1/main/postgresql.conf 中设置 listen_addresses = '*' 的值来解决此问题。我这样做了,但它仍然不允许我这样做。
出现其他错误
致命:主机“xxx.xx.xxx.xxx”没有 pg_hba.conf 条目,用户 “postgres”,数据库“postgres”,致命的 SSL:没有 pg_hba.conf 条目 对于主机“xxx.xx.xxx.xxx”,用户“postgres”,数据库“postgres”,SSL 关闭
xxx.xx.xxx.xxx = 我的 IP 地址。
我似乎错过了什么?
【问题讨论】:
标签: postgresql ubuntu ssh postgresql-9.1 ubuntu-12.04