PostgreSQL Installation Documentation

Source: Internet
Author: User
Tags postgresql

Tar XF postgresql-9.4.5.tar.gz

CD postgresql-9.4.5

Yum Grouplist

Yum Grouplist|grep Deve

Yum Groupinstall Development Tools

./configure--prefix=/test/postgresql9.4.5--without-readline--without-zlib

Make && make install

Mkdir/test/postgresql9.4.5/data

AddUser Postgres

Chown postgres:postgres/test/postgresql9.4.5/data/

Su-postgres

/test/postgresql9.4.5/bin/initdb-d/test/postgresql9.4.5/data/#初始化数据库

/test/postgresql9.4.5/bin/pg_ctl-d/test/postgresql9.4.5/data/-M start #启动数据库

/test/postgresql9.4.5/bin/pg_ctl-d/test/postgresql9.4.5/data/-M stop #停止数据库

###################

Modify the configuration file if you want remote access pg_hba.conf

# "Local" is for Unix domain sockets connections only
Local all All trust
# IPV4 Local connections:
Host All 0.0.0.0/0 Trust
Host All 0.0.0.0/24 MD5
# IPV6 Local connections:
Host all:: 1/128 Trust

and a postgresql.conf.

listen_addresses = ' * '

PostgreSQL Installation Documentation

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.