x******m 发帖数: 736 | 1 给postgre remote access,改了 pg_hba.conf, 加了host all all ipaddrss trust
。在postgresql.conf中listen_addresses = '*' 重起了postgres,还是不能remote
access,网上搜了无数,都是这么弄得。请教大家可能是什么原因。 iptables也看了
,没有block ip。 |
e*****s 发帖数: 121 | 2 跟认证方式有关?
trust
【在 x******m 的大作中提到】 : 给postgre remote access,改了 pg_hba.conf, 加了host all all ipaddrss trust : 。在postgresql.conf中listen_addresses = '*' 重起了postgres,还是不能remote : access,网上搜了无数,都是这么弄得。请教大家可能是什么原因。 iptables也看了 : ,没有block ip。
|
e***i 发帖数: 231 | 3 两件事情:
1.postgresql.conf
listen_addresses = '*'
2.pg_hba.conf
host all all 0.0.0.0/0 md5 |
x******m 发帖数: 736 | 4 没这么简单,网上搜了,大部分都是这两部。后来发现了,是port的问题。
【在 e***i 的大作中提到】 : 两件事情: : 1.postgresql.conf : listen_addresses = '*' : 2.pg_hba.conf : host all all 0.0.0.0/0 md5
|