listen addresses

From wikieduonline
Revision as of 14:34, 2 February 2023 by ELF (talk | contribs) (→‎Related)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

grep listen_addresses /etc/postgresql/*/main/postgresql.conf

listen_addresses = 'localhost' (Use * for listening on all addresses, review also pg_hba.conf configuration)

#listen_addresses = 'localhost' # what IP address(es) to listen on;

Example modification using sed

sed s/"#listen_addresses = 'localhost'"/"listen_addresses = '*'"/ /etc/postgresql/*/main/postgresql.conf

Related

listen_addresses 0.0.0.0

See also

Advertising: