Difference between revisions of "Listen addresses"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
grep listen_addresses /etc/postgresql/*/main/[[postgresql.conf]]
+
<code>grep listen_addresses /etc/postgresql/*/main/[[postgresql.conf]]</code>
  
listen_addresses = 'localhost' (Use * for listening on all addresses, review also pg_hba.conf configuration)
+
<code>listen_addresses = 'localhost' (Use * for listening on all addresses, review also pg_hba.conf configuration)</code>
  
#listen_addresses = 'localhost' # what IP address(es) to listen on;
+
<code>#listen_addresses = 'localhost' # what IP address(es) to listen on;</code>
  
 
== Example modification using [[sed (editor)|sed]] ==
 
== Example modification using [[sed (editor)|sed]] ==

Revision as of 14:17, 2 February 2023

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

See also

Advertising: