AWS:从 EC2 中访问元数据标签时出现问题
AWS: Problem accessing metadata tags from within EC2
curl -v http://169.254.169.254/latest/meta-data/
* Trying 169.254.169.254:80...
* TCP_NODELAY set
* connect to 169.254.169.254 port 80 failed: Timed out
* Failed to connect to 169.254.169.254 port 80: Timed out
* Closing connection 0
curl: (28) Failed to connect to 169.254.169.254 port 80: Timed out
O.S : Windows 10.
可以访问所有其他网站,但不能访问具有实例元数据的 IP。
我最近遇到了同样的问题。就我而言,我的路线 table 中没有通往 169.254.169.254
的路线。
因此我会先从命令行执行 route print
并确认是否有到达目的地 169.254.169.254
的路由。
就我而言,解决方案是简单地重新启动 Ec2Config
windows 服务以添加路由。
希望这对您有所帮助。
参考:
https://aws.amazon.com/premiumsupport/knowledge-center/waiting-for-metadata/
curl -v http://169.254.169.254/latest/meta-data/
* Trying 169.254.169.254:80...
* TCP_NODELAY set
* connect to 169.254.169.254 port 80 failed: Timed out
* Failed to connect to 169.254.169.254 port 80: Timed out
* Closing connection 0
curl: (28) Failed to connect to 169.254.169.254 port 80: Timed out
O.S : Windows 10.
可以访问所有其他网站,但不能访问具有实例元数据的 IP。
我最近遇到了同样的问题。就我而言,我的路线 table 中没有通往 169.254.169.254
的路线。
因此我会先从命令行执行 route print
并确认是否有到达目的地 169.254.169.254
的路由。
就我而言,解决方案是简单地重新启动 Ec2Config
windows 服务以添加路由。
希望这对您有所帮助。
参考: https://aws.amazon.com/premiumsupport/knowledge-center/waiting-for-metadata/