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

猜你喜欢

转载自unionx.iteye.com/blog/1842855
今日推荐