pg 连接报错
nan@nanMac var-13 % psql -h 192.168.11.1 -p 5432 -d nan
psql: error: FATAL: no pg_hba.conf entry for host "192.168.11.1", user "nan", database "nan", SSL off
添加访问策略。
nan@nanMac var-13 % vi pg_hba.conf
host replication all 127.0.0.1/32 trust
host replication all ::1/128 trust
host all all 192.168.11.1/24 trust
问题解决
nan@nanMac var-13 % psql -h 192.168.11.1 -p 5432 -d nan
psql (13.3)
Type "help" for help.
nan=# exit
