AWS [Errno -2]名称或服务未知 [英] AWS [Errno -2] Name or service not known

查看:91
本文介绍了AWS [Errno -2]名称或服务未知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用了SSH Secure Shell,并使用linux命令行运行,并尝试停止和启动实例.但是我出错了.有人知道如何解决这个问题吗?

I used SSH Secure Shell and run with linux command line and tried to stop and start the Instance. But I got error. Does anyone know how to solve this?

命令如下:

[tomcat@dlap54v ~]$ aws ec2 stop-instances --instance-ids i-e3a2b929

命令输出:

HTTPSConnectionPool(host='ec2.ap-southeast-1a.amazonaws.com', port=443): Max retries exceeded with url: / (Caused by <class 'socket.gaierror'>: [Errno -2] Name or service not known)

推荐答案

是因为地区原因.因为我来自新加坡,所以我在该地区使用了亚太地区(新加坡).它保持显示错误,例如名称或服务未知"因此,您可以选择美国东部(弗吉尼亚州).现在对我有用.

It's because of region. I used Asia Pacific (Singapore) for the region because I am from Singapore. It keeps show error like "Name or service not known" So, what you can do is choose US East(N.Virgina). It's working for me now.

这篇关于AWS [Errno -2]名称或服务未知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆