Postgresql服务器无法连接(10060错误信息)

上午在服务器的Centos8环境中安装完Postgresql-server。

客户端机器连接服务器时,超时报错(0x0000274C/10060)。

上网各种查解决方案,都是要求修改pg_hba.conf和postgresql.conf。

按要求修改后,仍然出现问题。

其实问题出在防火墙上,5432端口没有被放开。

执行下面命令,问题解决。

firewall-cmd --zone=public --add-port=5432/tcp --permanent
systemctl restart firewalld.service

 

posted on 2020-07-17 16:20  慢一拍儿  阅读(2041)  评论(0编辑  收藏  举报

导航