Centos5.7 install postgresql8.1

Source: Internet
Author: User
Tags unix domain socket postgresql version
Yum-y install PostgreSQL postgresql-libs postgresql-Server
 
Service PostgreSQL start
 
Set to boot
Chkconfig PostgreSQL on

Then modify the settings of/var/lib/pgsql/data/pg_assist.conf:

#"Local" Is ForUNIX domain socket connections only
# Local all ident sameuser
Local all trust
# IPv4 local connections:
# Host all127.0.0.1/32Ident sameuser
Host All all127.0.0.1/32MD5

Notify Postmaster that we have modified the settings.

 
Su-Postgres
Pg_ctl reload

Modify/var/lib/pgsql/data/PostgreSQL. conf
PostgreSQL version 8.x

Listen_addresses ='*'

Then add the settings of the host to be migrated in/var/lib/pgsql/data/pg_assist.conf, for example, a machine of a Class C segment can be imported:

1 Host All all192.168.1.0/24MD5

Then we will notify Postmaster that we have modified the settings.

Su-Postgres Pg_ctl reload

   
   

Finally, if a firewall is built in Linux using the firewall iptables, you need to add the 5432: TCP port to the enabled port.
Setup-> fire prevention setting-> firewall tool-> self-built-> other ports: Incoming 5432: TCP or ipvs: TCP

Http://www.andowson.com/posts/list/177.page

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.