2. PostgreSQL DBA: Install PostgreSQL 10 on CentOS 7
In this video, we explained how install and configure the PostgreSQL on CentOS Linux operating System. Below are the commands used in while installation PostgreSQL on CentOS.
1. Add Postgres Yum Repository
rpm -Uvh https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/pgdg-centos10-10-2.noarch.rpm
2. Install PostgreSQL Server 10:
yum install postgresql10-server postgresql10
3.Initialize PGDATA:
/usr/pgsql-10/bin/postgresql-10-setup initdb
4. Start PostgreSQL server and enable the service:
systemctl start postgresql-10.service
systemctl enable postgresql-10.service
centos 7