postgreSQL远程连接问题



postgreSQL远程连接问题

postgreSQL远程连接的时候要修改两个配置文件,一个是pg_hba.conf,

在# IPv4 local connections:

下添加客户端的ip,例如:

host all all 10.77.110.8/32 trust

二是postgresql.conf,

因为pg默认是只监听本地的请求,所以要将listen_address=’*',’*'是监听所有的,‘localhost’是监听本地