Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Followings are the steps to install PostgreSQL on CentOS 7.

Install PostgeSQL server

...

on command line

Code Block
sudo yum install -y postgresql-server postgresql-contrib
sudo postgresql-setup initdb
sudo systemctl start postgresql
sudo systemctl enable postgresql

...

Modify configuration by sudo vi /var/lib/pgsql/data/pg_hba.conf - you need to disable all the host settings to add by adding # and add insert addtional line below line

Code Block
host    all             all             0.0.0.0/0               password

...