Install Postgres on Centos 7



Install Postgres on Centos 7

Install Postgres on Centos 7

Blog:
http://bearsnack.co.uk

A quick tutorial on how to install PostgreSQL on Centos 7

Follow me on Twitter:
https://twitter.com/RandmTutorial

Yum Repository:
https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-7-x86_64/pgdg-centos95-9.5-2.noarch.rpm

initdb location:
/usr/pgsql-9.5/bin/

To Initialise database:
initdb -D /var/lib/pgsql/9.5/data

To start server:
pg_ctl -D /var/lib/pgsql/9.5/data start

Comments are closed.