软件下载吧文章资讯

分类分类

数据安全:Postgresql如何设置远程访问的方法,置防火墙或者关闭防火墙

2024-02-05 11:03作者:下载吧

Postgresql我通过百度已经将pg_hba.confpostgresql.conf文件设置好(网上bd一大堆

pg_hba.conf

# TYPE DATABASE USER ADDRESS METHOD
host all all 0.0.0.0/0 trust
# IPv4 local connections:
host all all 127.0.0.1/32 md5
host all all 0.0.0.0/0 trust
# IPv6 local connections:
host all all ::1/128 md5
# Allow replication connections from localhost, by a user with the
# replication privilege.
host replication all 127.0.0.1/32 md5
host replication all ::1/128 md5

展开全部

相关文章

说两句网友评论
    我要跟贴
    取消