centos 6.4下安装postgresql 9.2
我的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的更多相关文章
- CentOS 6.9下安装PostgreSQL
操作系统:CentOS6.9_x64 PostgreSQL官方网址: https://www.postgresql.org/ 安装数据库 使用如下命令: yum install postgresql- ...
- Linux下安装PostgreSQL 转载linux社区
Linux下安装PostgreSQL [日期:2016-12-25] 来源:Linux社区 作者:xiaojian [字体:大 中 小] 在Linux下安装PostgreSQL有二进制格式安装和 ...
- 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 ...
- CentOS 6.4 下安装vsftpd
概述: vsftpd是Linux下比较著名的FTP服务器,搭建FTP服务器当然首选这个. 本文介绍了在CentOS 6.4下安装vsftpd.配置虚拟用户登录FTP的过程. 正文: 一:安装vsftp ...
- 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.安装 ...
- CentOS 5.5 下安装Countly Web Server过程记录
CentOS 5.5 下安装Countly Web Server过程记录 1. 系统更新与中文语言包安装 2. 基本环境配置: 2.1. NodeJS安装 依赖项安装 yum -y install g ...
- CentOS 6系统下安装 JDK1.6
CentOS 6系统下安装 JDK1.6 JDK(Java Development Kit)是Sun Microsystems针对Java开发员的产品.自从Java推出以来,JDK已经成为使用最广泛的 ...
- 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 ...
- Centos 5.5下安装samba
1.安装: Centos 5.5下安装samba,具体步骤如下: [root@bogon ~]# rpm -q samba Package samba is not installed [root@b ...
随机推荐
- unity 环境增强
早上过来解决两个问题: (1)VS2012 配置下 VA_X 插件,现在VS在字体颜色方面已经提高很多,但是在类成员实时显示方面还是不方便,或者我没找到吧 (2)安装unityVs插件,微软把 ...
- 初学Java语法(笔记)
2015-12-30
- Java中调用c/c++语言出现Exception in thread "main" java.lang.UnsatisfiedLinkError: Test.testPrint(Ljava/lang/String;)V...错误
错误: Exception in thread "main" java.lang.UnsatisfiedLinkError: Test.testPrint(Ljava/lang/S ...
- 【转】最简单的CI框架入门示例--数据库取数据
1.下载CI框架(自己找) 2.配置 database.php配置: 为数据库服务器设置 connection 参数: $db['default']['hostname'] = "yo ...
- 告诉你Hadoop是什么
Hadoop是什么?Hadoop是一个开发和运行处理大规模数据的软件平台,是Appach的一个用java语言实现开源软件框架,实现在大量计算机组成的集群中对海量数据进行分布式计算. Hadoop框架中 ...
- 异常处理与MiniDump详解(4) MiniDump
http://blog.csdn.net/vagrxie/article/details/4398721 异常处理与MiniDump详解(4) MiniDump 分类: [Wi ...
- 初学MyBatis.net
1.MyBatis.net介绍 MyBatis..net是一个简单,但是完整的ORM框架,它使你的实体对象与sql语句或者存储过程之间的映射变得很简单,并提供数据访问.包括两个主要框架 DataAcc ...
- JavaScript判断文件的大小
function getFileSize(obj) {//obj 需要传入的参数为Input的对象 var objValue = obj.value; if (objValue == " ...
- C# Json时间类型的转换
DateTime dt1 = new DateTime(1970, 1, 1); dt1 = dt1.AddMilliseconds(long.Parse(list.Items[i].UpdatedA ...
- MongoDB创建用户
1.在创建用户之前,我们首先应该启动mongodb的用户验证功能,否则建立用户是没有意义的! 2.使用 //这个123用户拥有test1数据库的数据库管理员权限,拥有test2数据库的读取权限 db. ...