- pg_hba.conf, path : var/lib/pgsql/[versipostgre]/data
- postgresql.conf, path : var/lib/pgsql/[versipostgre]/data
listen_addresses = ‘localhost’
Ganti dengan : listen_addresses = ‘*’
Setelah itu masuk kedalam file pg_hba.conf dan samakan settingannya seperti dibawah ini :
# “local” is for Unix domain socket connections only
local all all trust
# IPv4 local connections:
host all all 0.0.0.0/0 md5
# IPv6 local connections:
host all all ::1/128 md5
# Allow replication connections from localhost, by a user with the
# replication privilege.
#local replication postgres peer
#host replication postgres 127.0.0.1/32 ident
#host replication postgres ::1/128 ident
Setelah itu restart atau stop lalu start service postgresql kalian dengan cara mengetikan perintah dibawah ini :
service postgresql-9.5 stop
service postgresql-9.5 start
Saya jamin, permasalahan ini sudah selesai.