菜单 学习猿地 - LMONKEY

VIP

开通学习猿地VIP

尊享10项VIP特权 持续新增

知识通关挑战

打卡带练!告别无效练习

接私单赚外块

VIP优先接,累计金额超百万

学习猿地私房课免费学

大厂实战课仅对VIP开放

你的一对一导师

每月可免费咨询大牛30次

领取更多软件工程师实用特权

入驻
488
0

centos和redhat下安装postgreSQL

原创
05/13 14:22
阅读数 61408

标签:http   c   tar   t   get   html   文件   htm   初始化   sql   数据   

1、确定你要下载的版本:下载地址

2、进入你存放下载文件的目录运行wget http://yum.postgresql.org/9.2/redhat/rhel-5-i386/pgdg-centos92-9.2-6.noarch.rpm,我的是32bit的centos5,其他版本可以在上面的路径中找到相关的链接

3、运行命令 rpm -ivh pgdg-centos92-9.2-6.noarch.rpm 安装

4、运行命令 yum install postgresql92-server 安装service

5、运行命令 service postgresql-9.2 initdb 初始化数据库

6、运行命令 service postgresql-9.2 initdb 启动postgresql

7、运行命令 chkconfig postgresql-9.2 on 开机启动postgresql,可以通过命令chkconfig –list查看已启动的服务

参考:地址

centos和redhat下安装postgreSQL,码迷,mamicode.com

centos和redhat下安装postgreSQL

发表评论

0/200
488 点赞
0 评论
收藏
为你推荐 换一批