#在postgresql.conf中的修改 listen_addresses = '*' port = 5432 #在pg_hba.conf中添加 host all all 192.168.1.0/24 trust