Install PostgreSQL server on CentOS 7

3

Install PostgreSQL package:

yum install https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-centos96-9.6-3.noarch.rpm

Now install the server itself:

yum install postgresql96-server postgresql96-contrib

If you use PostgreSQL with PHP then also install PHP client library:

yum install php-pgsql

Initialize new database cluster:

postgresql96-setup initdb

Now it's ready to work:

service postgresql-9.6 start
Share this page:

See also how to:

How to install PHP FastCGI Process Manager (FPM) on CentOS 7
A very simple steps to install PHP 7 on CentOS 7
How to install Java runtime environment on CentOS 7
How to install MySQL database server on CentOS 7
How to install NGINX web-server on Linux and confiure its basic settings