Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以通过 ip 或 localhost 在我的本地服务器窗口中连接我的 docker postgresql。当我尝试从我的个人窗口远程连接它时,出现超时错误。考虑5432端口被阻塞或没有监听。
我已经更改了 pg_hba.conf 和 postgresql.conf 文件以进行远程连接,并且还检查了防火墙,但它被禁用了。
Answer is I should have checked my server's firewall conf also, just dockerVM is not enough :)