Pagina principale e PostgreSQL: differenze tra le pagine
(Differenze fra le pagine)
Nessun oggetto della modifica |
Nessun oggetto della modifica |
||
Riga 1: | Riga 1: | ||
Client Consigliato: DBeaver | |||
https://blog.mclaughlinsoftware.com/2022/11/24/almalinuxpostgresql/ | |||
Sistema di installazione suggerito: https://www.postgresql.org/download/ | |||
# Install the repository RPM: | |||
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: | |||
sudo dnf -qy module disable postgresql <-- Importante!! | |||
# Install PostgreSQL: | |||
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 delle 14:56, 11 giu 2023
Client Consigliato: DBeaver
https://blog.mclaughlinsoftware.com/2022/11/24/almalinuxpostgresql/
Sistema di installazione suggerito: https://www.postgresql.org/download/
# Install the repository RPM: 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: sudo dnf -qy module disable postgresql <-- Importante!!
# Install PostgreSQL: 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)