PostgreSQL安装之后的几点配置
一、允许从其它IP以TCP连接过来
在/etc/postgresql/${PG_VERSION}/main/pg_hba.conf里加入
Shell代码
host all all 0.0.0.0/0 md5
在/etc/postgresql/${PG_VERSION}/main/postgresql.conf里修改
Shell代码
listen_addresses = '*'
然后重启Postgres服务
Shell代码
sudo service postgresql restart