端口 5432 正在侦听,但仍然关闭

时间:2021-06-21 07:30:20

标签: postgresql server command port remote-access

我已经挣扎了 3 天,已经尝试在远程机器上设置 Postgres,以便从其他设备连接。

已经完成的事情。

1. pg_hba.conf 已修改

pg_hba.conf

2. postrgresql.conf 已检查 enter image description here

3.在防火墙中为入站连接打开端口 firewall inbound rule

然而,端口仍然关闭

port closed

我正在检查命令行,可以看到以下内容。 command line 1 command line 2

结果 - 我无法连接到远程机器上的 postgresql 服务器。

远程机器在 Windows 服务器上。

1 个答案:

答案 0 :(得分:0)

感谢@Adrian Klaver 的评论。 我的问题是物理机有另一个防火墙设置,阻止了这个端口。