Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. [ec2-user@ip ~]$ nc -zv mydb.us-east-1.rds.amazonaws.com 5432
  2. Connection to mydb.us-east-1.rds.amazonaws.com 5432 port [tcp/postgres] succeeded!
  3.  
  4.  
  5. [ec2-user@ip ~]$ psql postgres -h mydb.us-east-1.rds.amazonaws.com -U userguy
  6. Password for user userguy:
  7. psql (9.5.4, server 9.6.1)
  8. WARNING: psql major version 9.5, server major version 9.6.
  9. Some psql features might not work.
  10. SSL connection (protocol: TLSv1.2, cipher: ECDHE-RSA-AES256-GCM-SHA384, bits: 256, compression: off)
  11. Type "help" for help.
  12.  
  13. postgres=> q
  14.  
  15.  
  16. [ec2-user@ip myjars]$ java -jar MyJar.jar param1
  17. Connecting to jdbc:postgresql://mydb.us-east-1.rds.amazonaws.com:5432/postgres
  18. org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement