PostgreSQL Mogo Database allows other hosts to access

Source: Internet
Author: User
Tags postgresql unix domain socket

Postgres

/etc/postgresql/9.5/main/

Environment pg_ctl.conf pg_hba.conf pg_ident.conf postgresql.conf start.conf

Postgresql.conf Modification:

' * '  'localhost'  # What IP address (es) to listen on;# comma-'  localhost'*' for all# (change Requires restart)

Pg_hba.conf Modification:

# Database AdministrativeLoginby Unix domain socketlocal all postgres peer# TYPE DATABASE USER ADDRESS method#"Local"Is forUnix domain Socket connections onlylocal All peer# IPv4 local C Onnections:host All127.0.0.1/ +md5# IPv6 Local connections:host all::1/ -md5# dyhost All172.18.1.80/ +md5# acmhost All172.22.27.0/8Md5

Mongo

Modify/etc/mongod.conf

Bindip: [127.0.0.1,192.168.1.2,192.168.1.3,192.168.1.4,192.168.1.5]

PostgreSQL Mogo Database allows other hosts to 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.