1、卸载旧版本postgresql $ yum remove postgresql*
2、更新yum $ yum update 3、下载pgdg-centos92-9.2-6.noarch.rpm,或者到http://yum.pgrpms.org/reporpms/选择相应版本 wget http://yum.pgrpms.org/9.2/redhat/rhel-5-x86_64/pgdg-centos92-9.2-6.noarch.rpm 4、 rpm -ivh pgdg-centos92-9.2-6.noarch.rpm 5、 $ sudo yum -y install postgresql92-server
6、初始化 $ service postgresql-9.2 initdb 如果提示-bash: service: command not found,则需要设置环境变量 $vi .bash_profile
export PATH=$PATH:/sbin
7、启动postgresql $ service postgresql-9.2 start
8、设置开机自动启动服务 chkconfig postgresql-9.2 on (责任编辑:最模板) |



ecshop仿美丽说网带手机版
人气:493
Monica外贸综合电子商务P
人气:717
dedecms建站公司bean清新绿模
人气:680
2011版兰亭(lightinthebox.com
人气:11278
ecshop仿红孩子母婴用品商
人气:1177
仿yoybuy淘宝海外英文代购
人气:3079