meta données pour cette page
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| postgresql:installation_postgresql16 [16/01/2026 15:26] – mdl | postgresql:installation_postgresql16 [20/01/2026 14:02] (Version actuelle) – mdl | ||
|---|---|---|---|
| Ligne 100: | Ligne 100: | ||
| [root@postgre1 ~]# groupadd postgres | [root@postgre1 ~]# groupadd postgres | ||
| [root@postgre1 ~]# useradd -g postgres -G postgres -d / | [root@postgre1 ~]# useradd -g postgres -G postgres -d / | ||
| + | [root@postgre1 ~]# chown postgres: | ||
| </ | </ | ||
| Ligne 267: | Ligne 268: | ||
| == Paramétrage du moteur == | == Paramétrage du moteur == | ||
| - | => personalisation | + | * personnalisation conf |
| - | log_filename = ' | + | <code bash> |
| + | [root@postgre1 ~]# vi / | ||
| + | | ||
| + | [...] | ||
| + | # - Connection Settings - | ||
| + | |||
| + | listen_addresses = ' | ||
| + | # comma-separated list of addresses; | ||
| + | # defaults to ' | ||
| + | # (change requires restart) | ||
| + | port = 5432 # (change requires restart) | ||
| + | |||
| + | |||
| + | [root@postgre1 ~]# systemctl restart postgresql | ||
| + | [root@postgre1 ~]# ll / | ||
| + | total 8 | ||
| + | -rw-------. 1 postgres postgres | ||
| + | -rw-------. 1 postgres postgres 1957 16 janv. 16:27 postgresql-Fri.log | ||
| + | |||
| + | </ | ||
| + | |||
| + | == Ouverture port 5432 sur le firewall == | ||
| + | |||
| + | <code bash> | ||
| + | [root@postgre1 ~]# firewall-cmd --add-port=5432/ | ||
| + | success | ||
| + | [root@postgre1 ~]# firewall-cmd --reload | ||
| + | success | ||
| + | [root@postgre1 ~]# firewall-cmd --list-all | ||
| + | public (active) | ||
| + | target: default | ||
| + | icmp-block-inversion: | ||
| + | interfaces: enX0 | ||
| + | sources: | ||
| + | services: cockpit dhcpv6-client ssh | ||
| + | ports: 5432/tcp | ||
| + | protocols: | ||
| + | forward: yes | ||
| + | masquerade: no | ||
| + | forward-ports: | ||
| + | source-ports: | ||
| + | icmp-blocks: | ||
| + | rich rules: | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | == Ouverture accès au client sur le moteur == | ||
| + | Pour qu'un client accède à l' | ||