Linux 下安装postgres 安装教程

本文档提供了一步一步的指南,介绍如何在Linux系统中安装PostgreSQL数据库。首先,检查并卸载已有的PostgreSQL安装,然后按照特定顺序安装所需的rpm包。接着,初始化数据库并启动PostgreSQL服务。最后,切换到postgres用户设置密码,并修改认证配置文件以启用密码验证。
摘要由CSDN通过智能技术生成

用到的几个rpm安装文件

1:postgresql-libs-8.4.13-1.el6_3.x86_64.rpm
2:postgresql-8.4.13-1.el6_3.x86_64.rpm
3:postgresql-server-8.4.13-1.el6_3.x86_64.rpm
4:uuid-1.6.1-10.el6.x86_64.rpm
5:postgresql-contrib-8.4.13-1.el6_3.x86_64.rpm

可以来这下载:http://download.csdn.net/detail/drift_away/6999521

也可以用命令到这个ftp获取(这个跟我演示自身装的版本不一样):

wget http://ftp.easynet.be/postgresql/binary/v8.4.2/linux/rpms/redhat/rhel-5-x86_64/postgresql-server-8.4.2-1PGDG.rhel5.x86_64.rpm
shell> wget http://ftp.easynet.be/postgresql/binary/v8.4.2/linux/rpms/redhat/rhel-5-x86_64/postgresql-contrib-8.4.2-1PGDG.rhel5.x86_64.rpm
shell> wget http://ftp.easynet.be/postgresql/binary/v8.4.2/linux/rpms/redhat/rhel-5-x86_64/postgresql-libs-8.4.2-1PGDG.rhel5.x86_64.rpm
shell> wget http://ftp.easynet.be/postgresql/binary/v8.4.2/linux/rpms/redhat/rhel-5-x86_64/postgresql-devel-8.4.2-1PGDG.rhel5.x86_64.rpm
shell> wget http://ftp.easynet.be/postgresql/binary/v8.4.2/linux/rpms/redhat/rhel-5-x86_64/postgresql-8.4.2-1PGDG.rhel5.x86_64.rpm
shell> wget http://ftp.easynet.be/postgresql/binary/v8.4.2/linux/rpms/redhat/rhel-5-x86_64/postgresql-plpython-8.4.2-1PGDG.rhel5.x86_64.rpm

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值