1.pgdg-centos96-9.6-3.noarch.rpm
PostgreSQL 9.6--"CentOS 7-x86_64
Download Link:
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. Check the installation
# 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. Initializing the database
#/usr/pgsql-9.6/bin/postgresql96-setup Initdb
5. Add a service
# Systemctl Enable Postgresql-9.6.service
6. Start the service
# Systemctl Start Postgresql-9.6.service
# Su-postgres
Psql
This article is from the "Yiyi" blog, make sure to keep this source http://heyiyi.blog.51cto.com/205455/1891138
PostgreSQL 9.6 RPM Package installs CentOS 7.2 X64