[关闭]
@code33 2016-04-06T14:48:39.000000Z 字数 223 阅读 674

PostgreSQL 生产安装,配置,维护(2)

postgresql 技术文档

实例配置

局域网访问权限

$PGDATA 内的 postgresql.conf 文件 IP地址监听打开,令任意IP皆可访问

  1. listen_address='localhost'

改作

  1. listen_address='*'

设置局域网访问方式

$PGDATA 内的 pg_hba.conf 文件
增加规则:
任意地址 任意数据库 从任意IP可用密码方式连接

  1. host all all 0.0.0.0/0 password

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注