postgreSQL远程连接出现:Error connecting to server :致命错误 SSL关闭的pg_hba.conf记录

异常截图:

解决方案:

[root@www ~]# vi /var/lib/pgsql/data/pg_hba.conf
# TYPE  DATABASE    USER        CIDR-ADDRESS          METHOD

# "local" is for Unix domain socket connections only
local   all         all                               ident
# IPv4 local connections:
host    all         all         127.0.0.1/32          ident
host    all         all         10.10.46.1/24          md5           # 新添加
# IPv6 local connections:
host    all         all         ::1/128               ident

 

备注:如出现监听异常,请修改

[root@www ~]# vi /var/lib/pgsql/data/postgresql.conf 
listen_addresses = ‘*‘                  # what IP address(es) to listen on; 移除注释
                                        # comma-separated list of addresses;
                                        # defaults to ‘localhost‘, ‘*‘ = all
                                        # (change requires restart)
port = 5432                             # (change requires restart) 移除注释
#ssl_renegotiation_limit = 512MB        # amount of data between renegotiations
password_encryption = on          # 移除注释

 

postgreSQL远程连接出现:Error connecting to server :致命错误 SSL关闭的pg_hba.conf记录,古老的榕树,5-wow.com

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。