I have created an amazon ec2 ubuntu instance and installed postgres in it but unable to connect it. I have enabled security group HTTP(80), Postgres(5432) and ssh(22).
While connect in pgadmin following errors are thrown Server doesn't listen
The server doesn't accept connections: the connection library reports
could not connect to server: Connection refused (0x0000274D/10061) Is the server running on host "54.172.***.***" and accepting TCP/IP connections on port 5432?