1 修改pg_hba.conf
添加允许访问IP
host all all 0.0.0.0/0 md5
2 修改监听配置
修改 postgresql.conf文件中
listen_addresses = 'localhost' # what IP address(es) to listen on;
为
listen_addresses = '*' # what IP address(es) to listen on;
重启数据库,客户端连接即可
1 修改pg_hba.conf
添加允许访问IP
host all all 0.0.0.0/0 md5
2 修改监听配置
修改 postgresql.conf文件中
listen_addresses = 'localhost' # what IP address(es) to listen on;
为
listen_addresses = '*' # what IP address(es) to listen on;
重启数据库,客户端连接即可