PostgreSQL Remote Access Enabled

Source: Internet
Author: User
Tags postgresql

Preamble : Only the remote permissions for the specified IP of PostgreSQL are configured, and later a client wants to see the data through a remote connection, but her IP is constantly postgre, causing me to re-set it every time, and finally find a way Now make the following records:

For Windows Services only

Locate the pg_hba.conf configuration file, and the path is normally under the data directory of the Postgre installation directory

C:\Program Files\postgresql\9.3\data
Open, make the following configuration
# IPV4 Local connections:host    all             127.0.0.1/32            md5host all             0.0.0.0/0            Md5
The first behavior specifies that IP specifies that the second behavior of all IPs, in general, is not to turn on all IP rights because of security.

It is also important to note that the postgresql.conf file of the same directory

listen_addresses = ' * ' # What IP address (es) to listen on;


PostgreSQL Remote Access Enabled

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.