Da GazziNet.
(Differenze fra le pagine)
|
|
Riga 1: |
Riga 1: |
| Client Consigliato: DBeaver
| | Tips: |
|
| |
|
| https://blog.mclaughlinsoftware.com/2022/11/24/almalinuxpostgresql/
| | Controllo tempo di risposta sito: |
| | |
| | |
| 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
| | curl -k --connect-timeout 30 --max-time 30 --write-out '%{time_total};%{http_code}\n' http://www.gazzi.net/ |
| ALTER USER admin WITH PASSWORD '****'; | |
|
| |
|
| Nel file pg_hba modificare es.:
| | [[PIP]] |
|
| |
|
| 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)
| | [[TimeZone]] |
|
| |
|
| Disable SeLinux
| | [[EPEL Oracle]] |
| Disable Firewalld
| |
Versione delle 17:15, 12 giu 2023