vim /var/lib/pgsql/10/data/pg_hba.conf
最后一行修改
# TYPE DATABASE USER CIDR-ADDRESS METHOD
host all all 0.0.0.0/0 md5
systemctl restart postgresql-10.service
vim /var/lib/pgsql/10/data/pg_hba.conf
最后一行修改
# TYPE DATABASE USER CIDR-ADDRESS METHOD
host all all 0.0.0.0/0 md5
systemctl restart postgresql-10.service