无法连接到EC2 t2.micro 实例。

0

【以下的问题经过翻译处理】 尝试访问我的网站时出现错误:“ERR_CONNECTION_TIMED_OUT”。在尝试调查并连接我的EC2实例时,我遇到了以下错误:

* A connection to the instance could not be established
* This instance type is not supported by the EC2 Serial Console. As additional information, the instance and the site were only working a few days ago, I have not made any changes neither on the instance nor on any configuration file.

该实例和网站仅在几天前工作良好,我既没有对实例进行任何更改,也没有更改任何配置文件。

profile picture
EXPERTE
gefragt vor 6 Monaten29 Aufrufe
1 Antwort
0

【以下的回答经过翻译处理】 连接超时错误可能由以下因素引起:

  • 安全组和网络访问控制列表(NACL)阻止网站之间的流量。
  • 操作系统中存在防火墙。
  • 客户端和服务器之间存在防火墙。
  • 主机不存在。
  • 主机资源耗尽。

ec2系统级别日志提供有关操作系统级别问题的更多详细信息,如使用代理或系统超载直到无法及时处理传入请求(参见引用1)。

为了解决这个问题,您可以配置您的网站的入站流量,以允许来自您的IP地址或您的安全组和NACL中选择的地址网络的流量(参见引用2)。

第二个问题的原因是您尝试使用的实例类型不支持EC2串行控制台。

有关支持的实例类型,请参阅提供的链接中的文档(参见引用3)。

要使用EC2串行控制台连接到您的实例,实例类型必须基于AWS Nitro System构建,不包括裸金属实例。

有关构建在Nitro系统上的实例的信息,请参见引用4。

您可以按照文档更改实例类型(参见引用5)。

[1] https://docs.aws.amazon.com/managedservices/latest/userguide/access-to-logs-ec2.html

[2] https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesConnecting.html#TroubleshootingInstancesConnectionTimeout

[3] https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/connect-to-serial-console.html#sc-prerequisites

[4] https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html?icmpid=docs_ec2_console#ec2-nitro-instances

[5] https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-resize.html

profile picture
EXPERTE
beantwortet vor 6 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen