pgadmin 数据库远程连接问题

新建好pg数据库,在使用pgadmin进行远程连接时的步骤

 

1、编辑pg_hba.conf,添加允许访问的地址: host all all 0.0.0.0/0 md5

 

2、编辑postgresql.conf, 修改监听地址及端口

 

1,2 参考文档:https://blog.csdn.net/beiigang/article/details/7935034

3、查看 postmaster.pid 文件,使用 pg_ctl status 及 ss -tlanp 命令进行比对,确保监听端口启用并信息一致

 

3、修改防火墙策略,放行IP信息或关闭防火墙

 

posted on 2019-04-22 16:05  步留痕  阅读(1953)  评论(0)    收藏  举报

导航