加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

postgresql 9.6 rpm包安装 CentOS 7.2 X64

发布时间:2020-12-13 16:59:00 所属栏目:百科 来源:网络整理
导读:1.pgdg-centos96-9.6-3.noarch.rpm PostgreSQL 9.6--》CentOS 7 - x86_64 下载链接: https://yum.postgresql.org/repopackages.php rpm -ivh pgdg-centos96-9.6-3.noarch.rpm 2.postgresql96-server # yum install -y postgresql96-server # yum install -y

1.pgdg-centos96-9.6-3.noarch.rpm

PostgreSQL 9.6--》CentOS 7 - x86_64

下载链接:

https://yum.postgresql.org/repopackages.php

rpm -ivh pgdg-centos96-9.6-3.noarch.rpm


2.postgresql96-server


# yum install -y postgresql96-server

# yum install -y postgresql96-contrib


3.检查安装

# rpm -qa|grep postgres

postgresql96-9.6.1-1PGDG.rhel7.x86_64

postgresql96-libs-9.6.1-1PGDG.rhel7.x86_64

postgresql96-server-9.6.1-1PGDG.rhel7.x86_64

postgresql96-contrib-9.6.1-1PGDG.rhel7.x86_64

#


4.初始化数据库


# /usr/pgsql-9.6/bin/postgresql96-setup initdb


5.添加服务

# systemctl enable postgresql-9.6.service


6.启动服务

# systemctl start postgresql-9.6.service


# su - postgres

psql

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读