CentOS Learning Diary: PostgreSQL Articles

Source: Internet
Author: User
Tags postgresql

This document records the installation, configuration, use, and operation of PostgreSQL on CentOS 6.7.

First, the preparatory work

1. CentOS 6.7

2. Network OK

Second, installation

Install PostgreSQL using YUM.

Yum Install PostgreSQL

Third, initialize

After successfully installing PostgreSQL, you will need to run the following command as described on the website:

Service PostgreSQL Initdbchkconfig PostgreSQL on

These two commands are used to initialize the PostgreSQL database and to set the PostgreSQL service as self-booting.

Iv. starting the PostgreSQL database service

Service PostgreSQL Start

PostgreSQL opens port 5432 by default and can be viewed to determine if the PostgreSQL service has started properly.

NETSTAT-TULNP | grep 5432


This article is from the "Bitterjava" blog, make sure to keep this source http://rickqin.blog.51cto.com/1096449/1719816

CentOS Learning Diary: PostgreSQL Articles

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.