PostgreSQL Remote Access

Source: Internet
Author: User
Tags postgresql

The default concept for PostgreSQL is to run on a local address and not allow external access.

If you want to access this excellent third-party software through Navicat for PostgreSQL, you need to make the following modifications:

First, start at an externally accessible address

 1   edit postgresql.conf files in the actual installation environment  2  vim/var /lib/pgsql/ 9.5 /data/postgresql.conf  3   modify  4  #listen_ addresses =  " localhost  "   # What IP address (es) to listen on;  5   is 
6 7 listen_addresses = " * " #use " * " for all

Second, increase remote access permissions

 1   edit pg_hba.conf  2  vim/var /lib/pgsql/9.5 /data/pg_hba.conf  3   in  4  # IPv4 local connections :  5  host all 127.0 . 0.1 /32   MD5  6   add this line below:  7  8  host all 0.0 . 0.0 /0  password 

This is the basic database configuration, and the rest is to configure the remote access users.

PostgreSQL Remote Access

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.