postgresql 9.6 rpm包安装 CentOS 7.2 X64

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

相关文章

来源:http://www.postgres.cn/docs/11/ 4.1.1. 标识符和关键词 SQL标识符和关键词必须以一个...
来源:http://www.postgres.cn/docs/11/ 8.1. 数字类型 数字类型由2、4或8字节的整数以及4或8...
来源:http://www.postgres.cn/docs/11/ 5.1. 表基础 SQL并不保证表中行的顺序。当一个表被读...
来源:http://www.postgres.cn/docs/11/ 6.4. 从修改的行中返回数据 有时在修改行的操作过程中...
来源:http://www.postgres.cn/docs/11/ 13.2.1. 读已提交隔离级别 读已提交是PostgreSQL中的...
来源:http://www.postgres.cn/docs/11/ 9.7. 模式匹配 PostgreSQL提供了三种独立的实现模式匹...