PostgreSQL 9.6 RPM Package installs CentOS 7.2 X64

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.