[英]Not able to ssh my aws ec2 instance which contains my wordpress files
I have configured my ec2 instances three days back and installed wordpress and added my files in the instances.三天前我已经配置了我的 ec2 实例并安装了 wordpress 并将我的文件添加到实例中。 Suddenly, from last night my ec2 public ip is showing timeout when I try to open the link in browser.
突然,从昨晚开始,当我尝试在浏览器中打开链接时,我的 ec2 public ip 显示超时。
My security setting are open for all traffic, I didn't change any modifications to the default settings has when creating instance.我的安全设置对所有流量都是开放的,创建实例时我没有更改对默认设置的任何修改。 Not sure what to do, request some one help to sort it out.
不知道怎么办,请人帮忙解决一下。
You can try to spin up and provision a new EC2 instance with wordpress on it, then attach and mount your old EBS volume (from your old EC2 instance) to the new EC2 instance.您可以尝试启动并配置一个带有 wordpress 的新 EC2 实例,然后将旧 EBS 卷(从旧 EC2 实例)附加并挂载到新 EC2 实例。
Just in case something bad happen, always create EBS snapshots first.以防万一发生不好的事情,请始终先创建 EBS 快照。
See this docs for detaching an Amazon EBS volume from a Linux instance , and this docs for attaching an Amazon EBS volume to an instance .有关从 Linux 实例分离 Amazon EBS 卷的文档,请参阅此文档,以及将 Amazon EBS 卷附加到实例的此文档。
As you're not using an elastic IP address for your instance, you should attach one so that the IP address cannot change in the future (even if the instance restarts or shuts down).由于您没有为您的实例使用弹性 IP 地址,因此您应该附加一个地址,以便 IP 地址在将来不会更改(即使实例重新启动或关闭)。
Once you've done this you will need to resolve and DNS records to this new IP address and use this IP address in the browser.完成此操作后,您需要将 DNS 记录解析到这个新的 IP 地址,并在浏览器中使用这个 IP 地址。 However this will not need to be done again in he future, and you will maintain the same instance.
但是,将来不需要再次执行此操作,您将保持相同的实例。
Also double check that your security groups are not bound to any specific IP addresses for an inbound rule, if your IP address is not fixed.如果您的 IP 地址不固定,请仔细检查您的安全组是否未绑定到入站规则的任何特定 IP 地址。 If they are then either update them to your current IP or consider another ingress method to access if it is internal to your organisation.
如果它们是,则要么将它们更新到您当前的 IP,要么考虑使用另一种入口方法来访问(如果它在您的组织内部)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.