简体   繁体   English

AWS实例连接拒绝还原的数据库实例

[英]AWS instance connection refused restored db instance

I cannot connect to a restored rds instance. 我无法连接到还原的RDS实例。 I create a new rds instance by restoring_from_snapshot. 我通过restoring_from_snapshot创建一个新的rds实例。

It copies all settings except the security group so I modify it after boot. 它会复制除安全组以外的所有设置,因此我在启动后会对其进行修改。

Now I cannot get psql to connect to 5432 on the endpoint. 现在,我无法使psql连接到端点上的5432。

Despite identical settings old working instance (can be access is in live usage) 尽管旧的工作实例设置相同(可以在实时使用中进行访问) 旧实例

new test instance based on snapshot 基于快照的新测试实例

新实例

I have the exact same settings on both instances. 我在两个实例上都有完全相同的设置。 The new instance starts with the default vpc sec group but I modified it to have the same. 新实例以默认的vpc sec组开头,但我对其进行了修改以使其具有相同的值。 The Instance also had many hours trying to propagate dns info. 实例也有很多时间尝试传播dns信息。 I have been trying the whole day to fix this. 我整天都在尝试解决此问题。

What could I have possibly missed here. 我在这里可能错过了什么。 The difference between the old(live) and new(test) is that the latter has no Multi AZ, no Backups, no Minor Version Upgrade. 旧(活动)和新(测试)之间的区别在于后者没有多可用区,没有备份,没有次要版本升级。 Ports are all default postgres 5432 端口都是默认的postgres 5432

psql response is that it asks for password with the new it says psql响应是它要求输入新密码

psql: could not connect to server: Connection refused
    Is the server running on host "**********.eu-central-1.rds.amazonaws.com" (**.**.**.**) and accepting
    TCP/IP connections on port 5432?

看来我们公司的防火墙不会让我进入5432端口。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM