Wednesday, February 16, 2022

How To Install PostgreSQL 14 in Rocky Linux 8.5

 in This Tutorial you will Learn " How To Install PostgreSQL 14 in Rocky Linux 8.5"

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.

Rocky Linux is an open-source enterprise operating system designed to be 100% bug-for-bug compatible with Red Hat Enterprise Linux®.
_________________________________________________________________________________________
Server - Os:  Rocky Linux 8.5  64Bit      |    IP -192.168.1.20        |     Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; dnf groupinstall "Development Tools" -y
dnf module list postgresql
dnf install https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm

dnf -qy module disable postgresql ; dnf -y install postgresql14 postgresql14-server
/usr/pgsql-14/bin/postgresql-14-setup initdb

firewall-cmd --add-service=postgresql --permanent ; firewall-cmd --reload
systemctl start postgresql-14 ; systemctl enable postgresql-14 ; systemctl status postgresql-14
cd /tmp ; sudo -u postgres psql
_________________________________________________________________________________________

No comments:

Post a Comment