首先:将/var/lib/..../pg_hba.conf文件中的indent全修改为trust即可。
#local all all ident
# IPv4 local connections:
host all all 127.0.0.1/32 md5
host all all 127.0.0.1/32 trust
host all all 192.168.1.1/32 trust
host all all 192.168.1.2/32 trust
其次:重新启动postgresql
本文详细介绍了如何通过修改/var/lib/..../pg_hba.conf文件中的indent为'trust',来允许本地和远程连接,并最终通过重启postgresql服务来应用更改。
2267

被折叠的 条评论
为什么被折叠?



