枫叶飞翔 发表于 2016-11-19 08:41:53

PostgreSQL安装之后的几点配置

一、允许从其它IP以TCP连接过来
  在/etc/postgresql/${PG_VERSION}/main/pg_hba.conf里加入

host    all             all             0.0.0.0/0               md5
  在/etc/postgresql/${PG_VERSION}/main/postgresql.conf里修改

listen_addresses = '*'
  然后重启Postgres服务

sudo service postgresql restart
页: [1]
查看完整版本: PostgreSQL安装之后的几点配置