CentOS7 PostgreSQL Installation
CentOS7 PostgreSQL Installation Install
Installing with Yum
Yum Install HTTP : //yum.postgresql.org/9.4/redhat/rhel-6-x86_64/pgdg-redhat94-9.4-1.noarch.rpm
Yum Install postgresql94-server postgresql94-contrib
Set boot up
Systemctl Enable PostgreSQL - 9.4 . Service
Systemctl start PostgreSQL-9.4. Service
Initializing the database
/usr/ Pgsql - 9.4 / bin / postgresql94 - Setup Initdb
Turn on remote access
/var/lib/pgsql/9.4/data/postgresql.conf
= ' * '
/var/lib/pgsql/9.4/data/pg_hba.conf
# IPV4 Local connections:
Host All127.0.0.1/ +Trust
Host All192.168.117.1/ +Trust
# IPV6 Local connections:
Host All::1/ -Trust
Modify User Password
Su Postgres
- U Postgres
' P0stgres '
\ Q
New File/usr/lib/firewalld/services/postgres94.xml
<?XML version="1.0"encoding="Utf-8"?>
<service>
<short>Postgres 9.4 Database Service</short>
<description>Postgres</description>
<portProtocol="TCP"Port="5432"/>
</service>
Modify firewall settings
Firewall - ----add-service = postgres94
Firewall---reload
CentOS7 PostgreSQL Installation