PostgreSQL Linux Installation

Source: Internet
Author: User
Tags postgresql

1, change permissions, execute command: chmod 755 postgresql-9.2.4-1-linux-x64.run

2. Execute the command to install the database. Go to the directory where the file is located and enter the./postgresql-9.2.4-1-linux-x64.run. Then select the database installation directory.

This article defaults to direct carriage return. That is, the installation path is/OPT/POSTGRESQL/9.2/

3. Select the path where the data is saved. This article also defaults. Enter directly. That is, the path is:/opt/postgresql/9.2/data directory.

4. Set the password for the Postgres account and set the port number. This article port number is the default 5432, the direct carriage return can.

5. Select the encoding format for the database. This article chooses 4, that is the Zh_cn.utf8.

6, after selecting the encoding format, wait for the database installation progress, until the progress reached 100% to prove that the database has been installed

7, verify that the installation is complete, and that the database has started successfully. Execute Command PS-E | grep Postgres to see if the process exists.

Execute command lsof-i:5432 to see if the database port is enabled.

PostgreSQL Linux Installation

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.