问题
在使用 openfire 服务器连接我的 postgresql 数据库时报错:
FATAL: no pg_hba.conf entry for host "10.10.20.26", user "jack", database "openfire", SSL off
解决方案:
你需要在 postgresql 的主机访问文件 pg_hba.conf 中创建一个主机条目
# vi /var/lib/pgsql/data/pg_hba.conf
在最后一行创建一个新条目,如下所示
host all all 0.0.0.0/0 md5
保存退出文件并重启postgresql服务
Save and exit the file and restart the postgresql service # service postgresql restart
现在重新尝试使用 openfire 连接数据库。
日期:2020-06-02 22:17:10 来源:oir作者:oir