pgsql 设置监听地址提供外部访问
警告
本文最后更新于 2020-05-30 17:09,文中内容可能已过时。
认证方式说明:
https://www.postgresql.org/docs/9.4/auth-methods.html
修改:
vim /data/postgresql/pg_hba.conf
IPv4 local connections:
host all all 0.0.0.0/0 md5
vim /data/postgresql/postgresql.conf
listen_addresses = ‘*’
重启服务:
pg_ctl stop -D /data/postgresql/ -s -m fast
pg_ctl start -D /data/postgresql/ -s -w -t 300
请我喝杯水

