Postgresql 为什么可以';我不能从远程访问我的postgres吗?
我在Ubuntu服务器上安装了Postgres 10.3服务器 我做了必要的设置,这些设置一直都足以让我从笔记本电脑上的PGAdmin访问它,但这次它不起作用 我尝试了以下步骤:Postgresql 为什么可以';我不能从远程访问我的postgres吗?,postgresql,timeout,remote-access,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 dire
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
我可以在本地连接到服务器,但remote仍无法工作
当我尝试连接时,似乎不是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?
原因可能是什么?设置服务器时,安装了Plesk
普莱斯克有自己的防火墙,拒绝连接。在允许后,它工作正常。该错误意味着机器之间的TCP通信工作不正常。它可能是一个丢弃数据包的防火墙。iptables没有“打开”,在sfw上我确实允许它。。。我是否还缺少另一个防火墙?