简体   繁体   English

无法 ssh 我的 aws ec2 实例,其中包含我的 wordpress 文件

[英]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.

相关问题 当我重新启动我的 ec2 实例时,没有在 AWS 上托管的 wordpress 站点上上传图片 - Not getting uploaded pictures on wordpress site hosted on AWS , when i restarting my ec2 instance 在 AWS EC2 实例上的 wordpress 中找不到 cURL - cURL not found in wordpress on AWS EC2 instance 如何让一个AWS子域网站指向另一个托管wordpress的EC2实例? - How can I have a AWS subdomain website point to another EC2 instance which hosts wordpress? 是否有任何服务可以监视我的网站,如果网站关闭了,请重新启动我的ec2实例? - Are there any services which can monitor my website, if site is down, reboot my ec2 instance? EC2 Wordpress 实例 SFTP 连接无法显示 wordpress 文件 - EC2 Wordpress instance SFTP connection failing to show wordpress files 在AWS EC2 Bitnami Wordpress实例中创建子域 - Creating a sub-domain in AWS EC2 Bitnami Wordpress instance 备份AWS中的wordpress站点,然后删除EC2中的实例 - Backup wordpress site in AWS and then delete instance in EC2 如何为AWS Ec2 WordPress实例启动PhpMyAdmin或MySQL Workbench? - How to launch PhpMyAdmin or MySQL Workbench for an AWS Ec2 WordPress instance? 一个 EC2 实例 (AWS) 下的多个 WordPress Multisite - Multiple WordPress Multisite under one EC2 instance (AWS) 将EC2实例配置为服务我所有的Rails \\ WordPress项目的空间 - Configuring an EC2 instance as a space to serve up all my Rails\WordPress projects
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM