PostgreSQL is a powerful, open source object-relational database system with over 30 years of active development that has earned it a strong reputation for reliability, feature robustness, and performance.
Official link : Here
Let's know how to install PostgreSQL on CentOS 7.
Method 1
Install from CentOS repository.For the time being CentOS 7 repositories ship with PostgreSQL version 9.2.15.
To install from the CentOS repositories, simply run:
Now lets Initialize your Postgres database and start PostgreSQL and configure it to start on Boot
Method 2.
Install the latest stable version of PostgreSQL from Postgres Repository
Official repository link : Here
Note : Currently official repositiry provides packages based on RPM distribution ( Redhat/CentOS/Fedora...)
Locate the CentOS 7 link for your chosen version and download it to your Centos 7 host.
For the time being, I'm selecting Postgresql 9.6.3, choose as per your requirement.
Install the downloaded postgres rpm package and install centos epel too.
Now we are almost all set to install PostgreSQL.
Update Yum to apply your changes and install PostgreSQL.
When installing Postgres manually, you will have to specify the version, we will be installaing postgresql-9.6
Important Point to notice.
Now lets Initialize your Postgres database and start PostgreSQL and configure it to start on Boot.
And we are done..
No comments:
Post a Comment