-
修改PostgreSql配置文件
# /etc/postgresql/<版本号>/main/postgresql.conf listen_addresses = '*' -
修改pg_hba.conf
# /etc/postgresql/<版本号>/main/pg_hba.conf # 增加以下内容 host all all 172.17.0.0/16 password -
重启数据库
systemctl restart postgresql<版本号>.service
最后更新于 2024-11-01