Postgres数据库外部连接?

允许Postgres数据库外部连接?
 配置/etc/postgresql/9.1/main/pg_hba.conf文件,添加一行 `host    all all 0.0.0.0/0 md5`, 然后重启动postgres: `sudo service postgresql restart`
 配置/etc/postgresql/9.1/main/postgresql.conf文件,修改#listen_addresses='localhost'为"listen_addresses='*'"

你可能感兴趣的:(Postgres数据库外部连接?)