我的linux版本是centos 6.4 ,准备安装postgresql 9.2

根据官方说明:

http://www.postgresql.org/download/linux/redhat/

缺省只能是8.4版本,如果要安装9.2,必须做一下改动:

rpm -i http://yum.postgresql.org/9.2/redhat/rhel-6-x86_64/pgdg-redhat92-9.2-7.noarch.rpm

yum install postgresql92-server postgresql92-contrib
service postgresql-9.2 initdb
chkconfig postgresql-9.2 on

第一步:

[root@wcf ~]#  rpm -i http://yum.postgresql.org/9.2/redhat/rhel-6-x86_64/pgdg-redhat92-9.2-7.noarch.rpm                                                         
warning: /var/tmp/rpm-tmp.sTOQTP: Header V4 DSA/SHA1 Signature, key ID 442df0f8: NOKEY

第二步:

root@wcf ~]# yum install postgresql92-server postgresql92-contrib              
Loaded plugins: fastestmirror, refresh-packagekit, security                     
Loading mirror speeds from cached hostfile                                      
 * base: mirrors.163.com                                                        
 * extras: mirrors.163.com                                                      
 * updates: mirrors.163.com                                                     
pgdg92                                                   | 2.8 kB     00:00     
pgdg92/primary_db                                        | 106 kB     00:00     
Setting up Install Process                                                      
Resolving Dependencies
--> Running transaction check
---> Package postgresql92-contrib.x86_64 0:9.2.4-1PGDG.rhel6 will be installed
--> Processing Dependency: postgresql92 = 9.2.4 for package: postgresql92-contrib-9.2.4-1PGDG.rhel6.x86_64
--> Processing Dependency: libossp-uuid.so.16()(64bit) for package: postgresql92-contrib-9.2.4-1PGDG.rhel6.x86_64
---> Package postgresql92-server.x86_64 0:9.2.4-1PGDG.rhel6 will be installed
--> Running transaction check
---> Package postgresql92.x86_64 0:9.2.4-1PGDG.rhel6 will be installed
--> Processing Dependency: postgresql92-libs = 9.2.4-1PGDG.rhel6 for package: postgresql92-9.2.4-1PGDG.rhel6.x86_64
---> Package uuid.x86_64 0:1.6.1-10.el6 will be installed
--> Running transaction check
---> Package postgresql92-libs.x86_64 0:9.2.4-1PGDG.rhel6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                   Arch        Version                Repository   Size
================================================================================
Installing:
 postgresql92-contrib      x86_64      9.2.4-1PGDG.rhel6      pgdg92      435 k
 postgresql92-server       x86_64      9.2.4-1PGDG.rhel6      pgdg92      3.8 MDownloading Packages:
(1/5): postgresql92-9.2.4-1PGDG.rhel6.x86_64.rpm         | 970 kB     00:03
(2/5): postgresql92-contrib-9.2.4-1PGDG.rhel6.x86_64.rpm | 435 kB     00:00
(3/5): postgresql92-libs-9.2.4-1PGDG.rhel6.x86_64.rpm    | 185 kB     00:00
(4/5): postgresql92-server-9.2.4-1PGDG.rhel6.x86_64.rpm  | 3.8 MB     00:07
(5/5): uuid-1.6.1-10.el6.x86_64.rpm                      |  54 kB     00:00
--------------------------------------------------------------------------------
Total                                           409 kB/s | 5.4 MB     00:13
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Installing : postgresql92-libs-9.2.4-1PGDG.rhel6.x86_64                   1/5
  Installing : postgresql92-9.2.4-1PGDG.rhel6.x86_64                        2/5
  Installing : uuid-1.6.1-10.el6.x86_64                                     3/5
  Installing : postgresql92-contrib-9.2.4-1PGDG.rhel6.x86_64                4/5
  Installing : postgresql92-server-9.2.4-1PGDG.rhel6.x86_64                 5/5
  Verifying  : postgresql92-libs-9.2.4-1PGDG.rhel6.x86_64                   1/5
  Verifying  : uuid-1.6.1-10.el6.x86_64                                     2/5
  Verifying  : postgresql92-server-9.2.4-1PGDG.rhel6.x86_64                 3/5
  Verifying  : postgresql92-contrib-9.2.4-1PGDG.rhel6.x86_64                4/5
  Verifying  : postgresql92-9.2.4-1PGDG.rhel6.x86_64                        5/5

Installed:
  postgresql92-contrib.x86_64 0:9.2.4-1PGDG.rhel6
  postgresql92-server.x86_64 0:9.2.4-1PGDG.rhel6

Dependency Installed:
  postgresql92.x86_64 0:9.2.4-1PGDG.rhel6
  postgresql92-libs.x86_64 0:9.2.4-1PGDG.rhel6
  uuid.x86_64 0:1.6.1-10.el6

Complete!

Installing for dependencies:
 postgresql92              x86_64      9.2.4-1PGDG.rhel6      pgdg92      970 k
 postgresql92-libs         x86_64      9.2.4-1PGDG.rhel6      pgdg92      185 k
 uuid                      x86_64      1.6.1-10.el6           base         54 k

Transaction Summary
================================================================================
Install       5 Package(s)

Total download size: 5.4 M
Installed size: 23 M
Is this ok [y/N]: y

centos 6.4下安装postgresql 9.2的更多相关文章

  1. CentOS 6.9下安装PostgreSQL

    操作系统:CentOS6.9_x64 PostgreSQL官方网址: https://www.postgresql.org/ 安装数据库 使用如下命令: yum install postgresql- ...

  2. Linux下安装PostgreSQL 转载linux社区

    Linux下安装PostgreSQL [日期:2016-12-25] 来源:Linux社区  作者:xiaojian [字体:大 中 小]   在Linux下安装PostgreSQL有二进制格式安装和 ...

  3. CentOS 6.3下 安装 Mono 3.2 和Jexus 5.4

    最新更新参看: Centos 7.0 安装Mono 3.4 和 Jexus 5.6 2012年初写过一篇<32和64位的CentOS 6.0下 安装 Mono 2.10.8 和Jexus 5.0 ...

  4. CentOS 6.4 下安装vsftpd

    概述: vsftpd是Linux下比较著名的FTP服务器,搭建FTP服务器当然首选这个. 本文介绍了在CentOS 6.4下安装vsftpd.配置虚拟用户登录FTP的过程. 正文: 一:安装vsftp ...

  5. centos 6.5下安装mysql+nginx+redmine 3.1.0 笔记

    centos 6.5下安装mysql+nginx+redmine 3.1.0 笔记 目录[-] 过程 1.安装RVM 2.利用rvm安装 Ruby 1.9.3 并设为默认 3.安装rails 4.安装 ...

  6. CentOS 5.5 下安装Countly Web Server过程记录

    CentOS 5.5 下安装Countly Web Server过程记录 1. 系统更新与中文语言包安装 2. 基本环境配置: 2.1. NodeJS安装 依赖项安装 yum -y install g ...

  7. CentOS 6系统下安装 JDK1.6

    CentOS 6系统下安装 JDK1.6 JDK(Java Development Kit)是Sun Microsystems针对Java开发员的产品.自从Java推出以来,JDK已经成为使用最广泛的 ...

  8. CentOS 6.5 下安装 Redis 2.8.7(转)

    转自:http://www.cnblogs.com/haoxinyue/p/3620648.html CentOS 6.5 下安装 Redis 2.8.7 wget http://download.r ...

  9. Centos 5.5下安装samba

    1.安装: Centos 5.5下安装samba,具体步骤如下: [root@bogon ~]# rpm -q samba Package samba is not installed [root@b ...

随机推荐

  1. iMx280A测试声纹

    1.首先要有声纹识别的动态库,且arm-linux-gcc的版本相同.可以在虚拟机用file 命令来看文件的基本信息,通过file指令,我们得以辨 识该文件的类型. 2.用tftp将库传到开发板的li ...

  2. Diode

    Diode https://zh.wikipedia.org/wiki/真空管 抽真空 电子在于其放射过程中,因会与空气中之组成分子相撞而产生阻力,因此电子经由如空气之类的介质来移动的话,将会比在真空 ...

  3. cascading rollback 级联回滚

    Computer Science An Overview _J. Glenn Brookshear _11th Edition To emphasize the delicate nature of ...

  4. Delphi dbf文件如何定位记录(即设置Table的RecNum属性来移动到该记录号)

    Delphi的table的RecNum属性,可以用来定位记录,如:self.Table1.RecNum:=23;即可以让数据库记录移动到23号记录上,但这种作用仅限于Paradox数据库,而不是dBA ...

  5. svn update 失败 且 clean up失败解决方法

    当出现这种情况时,大多数是因为svn的数据库还有队列没处理完.而我们要做到仅仅是把队列清除即刻. 具体做法是: 1.下载sqlite3.exe下载地址:sqlite官网http://www.sqlit ...

  6. Squid 操作实践

    Squid简介 Squid可以做什么 性能要素 Squid安装 Squid快速体验 Squid配置 Squid简介 Squid is a caching proxy for the Web suppo ...

  7. SQL Server批量数据导出导入BCP使用

    BCP简介 bcp是SQL Server中负责导入导出数据的一个命令行工具,它是基于DB-Library的,并且能以并行的方式高效地导入导出大批量的数据.bcp可以将数据库的表或视图直接导出,也能通过 ...

  8. 将java.util.Date类型转换成json时,使用JsonValueProcessor将date转换成希望的类型

    问题描述: java里面时间类型转换成json数据就成这样了: "createTime":{"date":30,"day":3," ...

  9. Meteor 使用疑问总结

    使用Meteor有七八个月了,现在总结下Meteor的几点感受 先说说缺点吧: Meteor 项目启动的比较慢,离开了网络根本没法启动,不知道为何启动的时候会从网上下载很多东西,而不是从本地去加载. ...

  10. HTML-001-日期组件 layDate 演示

    在日常的网页开发过程中,日期组件已经成为不可或缺的组件之一.同时,随着广大杰出攻城狮的不懈努力,也出现了很多优秀的日期组件,其中我个人觉得 layDate 日期组件是一个非常不错的组件,简洁易用,样式 ...