简体   繁体   English

AWS - EC2 - Ubuntu 实例公共 ip 拒绝连接

[英]AWS - EC2 - Ubuntu instance public ip refused to connect

AWS - EC2 - Ubuntu instance has been working good from past 1 month. AWS - EC2 - Ubuntu 实例在过去 1 个月内一直运行良好。 Today morning when I connected to it, it is asked for system restart & packages update.今天早上当我连接到它时,它被要求重新启动系统和更新包。

So I used所以我用

sudo reboot

For system restart用于系统重启

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

packages update包更新

From then onwards I am unable to connect to public ip从那时起,我无法连接到公共 ip

our public ip is 3.215.105.115我们的公共 IP 是 3.215.105.115

I tried curl localhost我试过curl localhost

It is showing它正在显示

curl: (7) Failed to connect to localhost port 80: Connection refused curl: (7) 无法连接到本地主机端口 80:连接被拒绝

Do the following:请执行下列操作:

  • Stop the instance.停止实例。
  • Detach the root volume.分离根卷。
  • Attach the root volume to a known working instance.将根卷附加到已知的工作实例。
  • Run filesystem check (fsck –a /dev/...).运行文件系统检查 (fsck –a /dev/...)。
  • Fix any errors.修复任何错误。
  • Detach the volume from the known working instance.从已知的工作实例中分离卷。
  • Attach the volume to the stopped instance.将卷附加到已停止的实例。
  • Start the instance.启动实例。

For more details, see the section titled "Start a Debug Linux Instance" here: How to Recover an Unreachable Linux Instance有关更多详细信息,请参阅此处标题为“启动调试 Linux 实例”的部分如何恢复无法访问的 Linux 实例

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

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