我的博客
个人资料:
AlanThinker
AlanThinker@stk.me

centos中安装指定版本的postgresql

软件开发 发表时间:2016-09-06 更新时间:2016-09-06


参考: https://www.postgresql.org/download/linux/redhat/

添加新源
yum install http://yum.postgresql.org/9.5/redhat/rhel-7-x86_64/pgdg-redhat95-9.5-2.noarch.rpm 
安装       
yum install postgresql95-server postgresql95-contrib
 初始化:
/usr/pgsql-9.5/bin/postgresql95-setup initdb 
启动服务:
service postgresql-9.5 restart      

也可以直接安装适合各个linux发行版的安装包:
http://www.bigsql.org/postgresql/installers.jsp                    
IP Address: 43.129.217.254