Linux安装PostgreSQL 9.4步骤
一、安装PostgreSQL CentOS 7 64bit
rpm -Uvh http://yum.postgresql.org/9.4/redhat/rhel-7-x86_64/pgdg-centos94-9.4-1.noarch.rpm
二、执行安装命令
yum update
yum install postgresql94-server postgresql94-contrib
三、验证是否安装成功
rpm -aq| grep postgres
执行结果如下:
postgresql94-libs-9.4.1-1PGDG.rhel7.x86_64
postgresql94-server-9.4.1-1PGDG.rhel7.x86_64
postgresql94-9.4.1-1PGDG.rhel7.x86_64
postgresql94-contrib-9.4.1-1PGDG.rhel7.x86_64
四、初始化数据库