Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change listen_addresses to * from localhost in postgres?

I want to change the listen_addresses of my postgres database to *

I am using the command

ALTER SYSTEM SET listen_addresses TO '*';

But the value of the parameter is not changing to *.

Am I doing anything wrong with the command?

Currently my configuration in postgresql.conf is overwritten by postgresql.auto.conf.

like image 222
soumya sambit Kunda Avatar asked Oct 21 '25 01:10

soumya sambit Kunda


1 Answers

I was in your exact situation.

You need to restart the service via the below command in order for your changes to become active.

sudo systemctl restart postgresql.service

Below is a picture of what I have done. command line code

like image 80
Chaim Stanton Avatar answered Oct 23 '25 15:10

Chaim Stanton



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!