为什么我无法从远程访问我的postgres?

时间:2018-04-19 12:31:12

标签: postgresql timeout remote-access

我在Ubuntu服务器上安装了Postgres 10.3服务器。

我做了必要的设置,这些设置总是能够从我的笔记本电脑上从PGAdmin访问它,但这次它不起作用。

我尝试了以下步骤:

listen_addresses = '*'
host all all 0.0.0.0/0 trust
ufw allow 5432
Postgresql restarted
Server rebooted
Server pinged with success
Restarted the VPN-Client
direct IP instead of VPN-IP
disabled IPTABLES

本地我可以连接到服务器,但遥控器仍无法正常工作。

当我尝试连接时,看起来并不是这样,postgres阻止了它,但之前的事情是:

Unable to connect to server:

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

可能是什么原因?

1 个答案:

答案 0 :(得分:1)

设置服务器后,安装了Plesk。

Plesk有一个自己的防火墙,拒绝连接。在允许之后,它完美无瑕。

相关问题