CentOS 7 Installation PostgreSQL

Source: Internet
Author: User

1 Yum Install http://yum.postgresql.org/9.4/redhat/rhel-6-x86_64/pgdg-redhat94-9.4-1.noarch.rpm  2yuminstall postgresql94-server postgresql94-contrib3 /usr/ pgsql-9.4/bin/postgresql94-setup Initdb
Boot up
1 systemctl enable postgresql-9.4. Service
Start PostgreSQL
1 systemctl start postgresql-9.4. Service
Remote access allows all IP access
VI /var/lib/pgsql/9.4/data/='*'vi /var/ lib/pgsql/9.4/data/pg_hba.confhost    all0.0.  0.0/0    MD5
Change Password
1 su Postgres 2 psql-U postgres3'yourpassword'
If there is a firewall, turn it off or add
VI/usr/lib/firewalld/services/Postgres94.xml<?xml version="1.0"encoding="Utf-8"?><service> < Short>postgres9.4Database service</ Short> <description>Postgres</description> <portprotocol="TCP"port="5432"/></service>Firewall-cmd--permanent--add-service=Postgres94firewall-cmd--reload
You can use Pgadmin connection management on Windows.

CentOS 7 Installation PostgreSQL

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.