Versão Avaliada: 9.4 / 18
Ajuste o arquivo postgresql.conf
# vi /etc/postgresql/18/main/postgresql.conf
listen_addresses = '*'
Ajuste o arquivo pg_hba.conf
# vi /etc/postgresql/18/main/pg_hba.conf
# Database administrative login by Unix domain socket
#local all postgres peer
local all postgres trust
....
# IPv4 local connections:
#host all all 127.0.0.1/32 scram-sha-256
host all all 0.0.0.0/0 scram-sha-256
Reinicie o serviço
# systemctl restart postgresql.service
Ajuste o arquivo postgresql.conf
# vi /etc/postgresql/18/main/postgresql.conf
listen_addresses = '*'
Ajuste o arquivo pg_hba.conf
# Database administrative login by Unix domain socket
De:
local all postgres trust
Para:
local all postgres md5
Reinicie o serviço
# /etc/init.d/postgresql restart