1 下载 postgres-9.0.6-1.x86_64.openscg.rpm
2 安装
用root用户 执行 rpm -ivh postgres-9.0.6-1.x86_64.openscg.rpm
3 启动
/etc/init.d/postgres-9.0-openscg start
4 问题:
1、 默认安装,客户端不能访问 会出现:pg_hba.conf entry for host "xx.xx.."
解决方式:修改/opt/postgres/9.0/data/pg_hba.conf 文件 在# IPv4 local connections:下添加可以访问的ip地址 如:
host all all 192.168.0.0/16 md5 (意思是所有192.168.xx.xx的客户端都可以连接服务器)
这个细节可以看官网的介绍:http://www.postgresql.org/docs/8.2/static/auth-pg-hba-conf.html
要灵活配置需要了解 ip-mask(子网掩码的概念)
133




被折叠的 条评论
为什么被折叠?



