PostgreSQL Remote connection appears: Error connecting to server: Fatal error SSL shutdown pg_hba.conf record

Source: Internet
Author: User
Tags unix domain socket

Abnormal:

Solution:

[Email protected] ~]# vi/var/lib/pgsql/data/pg_hba.conf
# TYPE DATABASE USER cidr-ADDRESS method#"Local"Is forUnix domain Socket connections onlylocal All ident# IPv4 Local connection S:host All127.0.0.1/ +Identhost All10.10.46.1/ -MD5 # New Add # IPV6 local connections:host all::1/ -Ident

Note: If there is a listener exception, please modify

Vi
listen_addresses = ' * ' # What IP address (es) to listen on; Remove comments
# comma-separated List of addresses;
# defaults to ' localhost ', ' * ' = All
# (change requires restart)
Port = 5432 # (change requires restart) removing comments
#ssl_renegotiation_limit = 512MB # amount of data between renegotiations
Password_encryption = on # remove Comment

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.