庞果吧 关注:2贴子:113
  • 2回复贴,共1

CentOS 下安装PostgreSQL 9.3

只看楼主收藏回复

PostgreSQL是一个强大开源的对象关系类型数据库系统,它能运行于几乎所有主要的操作系统,包括Linux、Unix(AIX、BSD、HP-UX、SGI IRIX、Mac OS、Solaris、Tru64)、Windows OS。


IP属地:北京1楼2015-10-30 15:23回复
    1.安装PostgreSQL
    首先根据你的服务器架构添加PostgreSQL库:
    对CentOS 6.x 32bit:
    rpm -Uvh http://yum.postgresql.org/9.3/RedHat/rhel-6-i386/pgdg-centos93-9.3- 1.noarch.rpm
    对CentOS 6.x 64bit:
    rpm -Uvh http://yum.postgresql.org/9.3/redhat/rhel-6-x86_64/pgdg-centos93-9.3-1.noarch.rpm
    对CentOS 7 64bit:
    rpm -Uvh http://yum.postgresql.org/9.3/redhat/rhel-7-x86_64/pgdg-centos93-9.3-1.noarch.rpm


    IP属地:北京2楼2015-10-30 15:26
    回复
      对于其它的发行版,可查看以下链接并建立库:
      http://yum.postgresql.org/repopackages.php#pg93
      使用以下命令来更新库:
      yum update


      IP属地:北京3楼2015-10-30 15:27
      回复