PostgreSQL: differenze tra le versioni

Da GazziNet.
Vai alla navigazione Vai alla ricerca
Nessun oggetto della modifica
Nessun oggetto della modifica
 
(6 versioni intermedie di uno stesso utente non sono mostrate)
Riga 3: Riga 3:
  https://blog.mclaughlinsoftware.com/2022/11/24/almalinuxpostgresql/
  https://blog.mclaughlinsoftware.com/2022/11/24/almalinuxpostgresql/


[[Installazione Postgress]]


Sistema di installazione suggerito: https://www.postgresql.org/download/
[[BarMan]]


# Install the repository RPM:
[[Tuning]]
sudo dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rpm


# Disable the built-in PostgreSQL module:
[[PgClu]]
sudo dnf -qy module disable postgresql <-- Importante!!


# Install PostgreSQL:
[[RepMgr]]
sudo dnf install -y postgresql15-server
 
# Optionally initialize the database and enable automatic start:
sudo /usr/pgsql-15/bin/postgresql-15-setup initdb
sudo systemctl enable postgresql-15
sudo systemctl start postgresql-15
 
Database folder: /var/lib/pgsql/15/data/
 
su - postgres
createuser -s admin
Richiamare: psql
ALTER USER admin WITH PASSWORD '****';
 
Nel file pg_hba modificare es.:
 
host    all            admin          172.16.0.0/24            password (Utente admin abilitato ad accedere da tutti gli ip della rete 172.16.0.x via TCP/IP in tutti i DB)

Versione attuale delle 13:51, 12 giu 2023