码迷,mamicode.com
首页 > 数据库 > 详细

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

时间:2014-07-11 09:12:01      阅读:902      评论:0      收藏:0      [点我收藏+]

标签:style   blog   color   os   art   cti   

异常截图:

bubuko.com,布布扣

解决方案:

[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记录,布布扣,bubuko.com

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

标签:style   blog   color   os   art   cti   

原文地址:http://www.cnblogs.com/Richard-xie/p/3834612.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!