Answer the question
In order to leave comments, you need to log in
How to replace a line via sed in a file?
There is a file:
/var/lib/pgsql/9.4/data/postgresql.conf
it needs to be replaced like this:
Change #listen_addresses = 'localhost' to listen_addresses = '*'
Change #port = 5432 to port = 5432
how to implement it?
PS: Am I the only lazy one? Or maybe they have already "invented the wheel" and there is some kind of tool that will set up the system according to a template, without writing your own bash lines that are executed on a semiautomatic device?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question