首先:将/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