zoukankan      html  css  js  c++  java
  • Postgresql允许远程访问配置修改

    postgresql默认情况下,远程访问不能成功,如果需要允许远程访问,需要修改两个配置文件,说明如下:

    1.postgresql.conf

    将该文件中的listen_addresses项值设定为“*”,在9.0 Windows版中,该项配置已经是“*”无需修改。

    2.pg_hba.conf

    在该配置文件的host all all 127.0.0.1/32 md5行下添加以下配置,或者直接将这一行修改为以下配置

    host    all    all    0.0.0.0/0    md5

    或者

    host    all    all    all    md5

    如果不希望允许所有IP远程访问,则可以将上述配置项中的0.0.0.0设定为特定的IP值。

     

    本文摘自:http://www.cnblogs.com/jevonsea/archive/2013/01/24/2874184.html,黄色背景为我补充内容。

  • 相关阅读:
    newgrp
    netstat
    netlink, PF_NETLINK
    netdevice
    mv
    mplayer
    mpg123
    MOVE
    motd
    more
  • 原文地址:https://www.cnblogs.com/qq-757617012/p/5607526.html
Copyright © 2011-2022 走看看