问题遇到的现象和发生背景
在华为云ecs服务器上安装postgresql时,无妨远程访问报错:

数据库log报错信息:
无法从客户端获得数据: An existing connection was forcibly closed by the remote host.
操作环境、软件版本等信息
服务器是Windows server 系统,防火墙已关闭,已配置安全组,端口号:5432,确定端口是通的
postgresql尝试安装过两个版本9.6和14
尝试过的解决方法
在postgresql.conf文件已修改
listen_addresses = '*'
在pg_hba.conf文件修改
host all all 0.0.0.0/0 password
我想要达到的结果
可以远程访问postgresql数据库