Add Linux/PostgreSQL/README.md

This commit is contained in:
2023-12-03 10:51:54 +00:00
parent d3583d7fd2
commit 0455edcb4f

View File

@@ -0,0 +1,18 @@
# PostgreSQL Installation on AlmaLinux
```javascript
# Install Repository
dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rpm
# Disable default PostgreSQL module
dnf -qy module disable postgresql
# Install PostgreSQL (you can change version ofc)
dnf -y install postgresql16-server postgresql16-contrib
# Initialize DB
/usr/pgsql-16/bin/postgresql-16-setup initdb
# Set autostart and start PostgreSQL now
systemctl enable --now postgresql-16
```