1.在PostgreSQL安装目录下data文件夹,打开pg_hba.conf文件,新增允许访问的ip
host all all 0.0.0.0/0 md5
2.打开postgresql.conf,将listen_addresses = ‘localhost’ 改成 listen_addresses = ‘*’(改过请忽略)
3.重启服务
1.在PostgreSQL安装目录下data文件夹,打开pg_hba.conf文件,新增允许访问的ip
host all all 0.0.0.0/0 md5
2.打开postgresql.conf,将listen_addresses = ‘localhost’ 改成 listen_addresses = ‘*’(改过请忽略)
3.重启服务