I try do access remotely a Postgresql(10.3) db.
After I modify #listen_addresses = 'localhost'
to listen_addresses = '*'
or the ip, I get an error when I use:
sudo -u postgres psql
'Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"? '