添加相应的参数以创建一个到PostgreSql的连接:

6. 设置其它机器上对postgres的访问
修改/etc/postgresql/8.4/main/pg_hba.conf:
host all all 0.0.0.0/0 md5 #0.0.0.0为地址段,0为多少二进制位
例如:192.168.0.0/16代表192.168.0.1-192.168.255.254
修改/etc/postgresql/8.4/main/postgresql.conf
listen_address = '*'
重启数据库
sudo /etc/init.d/postgresql-8.4 restart
