Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
sudo systemctl enable postgresql


Open by sudo vi /var/lib/pgsql/data/postgresql.conf and modify its part like below:

Code Block
listen_addresses = '*'                  # defaults to 'localhost'; use '*' for all
port = 5432                             # uncomment as long as you want to connect by socket


Modify configuration by sudo vi /var/lib/pgsql/data/pg_hba.conf - you need to uncomment all the host files and add below line

...