Uncomment listen_address = localhost
sudo vi /var/lib/pgsql/data/postgresql.conf
#Uncomment listen_address=localhost
sudo systemctl restart postgresql
sudo systemctl status postgresql.service
Glamorous Giraffe