AWS上的EC2实例不起作用 [英] Ec2 instance on AWS apt- get not working

查看:164
本文介绍了AWS上的EC2实例不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在具有Amazon Ubuntu的AWS上拥有Ec2实例。

I have Ec2 instance on AWS with Amazon Ubuntu.

当我尝试下载任何内容时,我都无法下载。

When i try to download any thing, I am unable to do so.

例如:

~# apt-get update

0% [Connecting to ap-southeast-1.ec2.archive.ubuntu.com (103.246.148.161)] [Connecting to security.ubuntu.com (91.189.91.15)

另一个Ex将是

~# wget https://s3.amazonaws.com/aws-cli/awscli-bundle.zip

--2014-04-09 07:27:17--  https://s3.amazonaws.com/aws-cli/awscli-bundle.zip
Resolving s3.amazonaws.com... 207.171.189.80
Connecting to s3.amazonaws.com|207.171.189.80|:443...

这将永远存在。

我能够下载文件,直到创建为止AWS控制台的组和用户。

I was able to download files until I created Group and user for AWS Console.

请在此处提出可能存在的问题。

Please suggest what can be issues here.

推荐答案

您的EC2实例的安全组未配置为允许其访问Internet。您需要针对所有流量 0.0.0.0/0的出站规则 code>。在 EC2-Classic 中,此功能已经存在,因此您不必担心。但是,如果这是在VPC中,则需要添加此规则。

You EC2 instances's Security groups is not configured to let it reach internet. You need to have an Outbound rule for all traffic to 0.0.0.0/0. In EC2-Classic, this is already in place and hence you need not worry. However, if this is in VPC, then you need to add this rule.

此外,除了上述内容之外,您还可以检查是否有任何 iptables 规则会引起任何问题。

Also, Apart from what is said above, could you check whether any iptables rules causing any issue.

这篇关于AWS上的EC2实例不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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