菜鸡啄米米
我的随笔有原创也有转载,但都是我亲测过的。如果有幸能帮到你,你我都会很开心吧

1.pg_hba.conf中添加listen_addresses = '*'

#vim /usr/local/postgresql/data/pg_hba.conf

#listen_addresses = 'localhost' # what IP address(es) to listen on;
listen_addresses = '*'

 

2.postgresql.conf中添加host all all 192.168.0.1/24 trust,表示192.168.0.1~192.168.0.254的IP允许连接

#vim /usr/local/postgresql/data/postgresql.conf

# IPv4 local connections:
host all all 127.0.0.1/32 trust
host all all 192.168.0.1/24 trust

posted on 2018-06-14 14:30  菜鸡啄米米  阅读(822)  评论(0编辑  收藏  举报

Live2D