美文网首页
postgress 设置内网访问

postgress 设置内网访问

作者: sbtiny | 来源:发表于2016-10-16 17:38 被阅读53次
  • 如果是阿里云内网需要配置一下安全组,允许出方向的ip
  • 更新 /etc/postgresql/9.3/main/postgresql.conf,表示监听在哪个IP上面
listen_addresses = '10.40.94.45'          # what IP address(es) to listen on;
  • 更新 /etc/postgresql/9.3/main/pg_hba.conf, 表示哪个IP可以访问服务
host    all    all    10.24.245.39/32    md5
  • 重启服务

相关文章

网友评论

      本文标题:postgress 设置内网访问

      本文链接:https://www.haomeiwen.com/subject/lmxayttx.html