Install postgresql on centos 7
Installing postgresql
Fedora, RHEL, CentOS, or similar OS
# yum install postgresql
# yum install postgresql-server
Initialize postgresql Files
# postgresql-setup initdb
Setup postgresql
Set address
127.0.0.1
and::1
totrust
at thepg_hba.conf
file. The directory might not be visible to non-sudoers. Runsudo su
first.