Postgresql 不接受远程连接

Postgresql wont accept remote connections

我尝试在 IP 表中打开端口,
将收听地址设置为“*”
已添加
host all all 23.81.27.0/24 信任
托管所有所有 0.0.0.0/0 信任

YouGetSignal 显示端口已关闭,我无法通过 PgAdmin 连接到我的数据库。

我明白了

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

我已经尝试重启 Postgresql、IPtables 和服务器。

有什么想法吗?

尝试在 postgresql.conf 中添加(或取消注释)"listen *" 然后重启postgresql。