记一次pgsql远程连接失败

2019-08-15 09:47:23 CST LOG: invalid CIDR mask in address "0.0.0.0/128"
2019-08-15 09:47:23 CST CONTEXT: line 84 of configuration file "/home/postgres/PostgreSQL/9.5/data/pg_hba.conf"
2019-08-15 09:47:23 CST FATAL: could not load pg_hba.conf
https://www.cnblogs.com/min416/p/8940836.html

注释掉IPV6部分的设置。

以上操作后,设置ssl启用,本地127.0.0.1连接数据库成功,但localhost方式连接失败。

具体参考:
https://www.postgresql.org/message-id/[email protected]
http://mangocool.com/1457509181285.html

添加下图中标注的行后OK

ipv6本地回路测试需要用到localhost...

ipv4中是127.0.0.1

ipv6使用 ::1

猜你喜欢

转载自www.cnblogs.com/21summer/p/11356135.html