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
本文出自 “yiyi” 博客,请务必保留此出处http://heyiyi.blog.51cto.com/205455/1891138
postgresql 9.6 rpm包安装 CentOS 7.2 X64
原文地址:http://heyiyi.blog.51cto.com/205455/1891138