我在AWS中创建了一个新的ubuntu实例,我可以成功连接到它.但是当我尝试使用此命令安装软件包时,它将无法正常工作:
sudo apt-get install apache2
...
...
0% [Connecting to ap-southeast-2.ec2.archive.ubuntu.com (91.189.91.23)]^Cubuntu@ip-10-1-0-99:/etc$
Run Code Online (Sandbox Code Playgroud)
这永远不会前进!
我试过ping google.com.au,也没有回应.
以下是AWS的VPC配置:
Network ACL :
Outbound:
Rule # Type Protocol Port Range Destination Allow / Deny
100 ALL Traffic ALL ALL 0.0.0.0/0 ALLOW
* ALL Traffic ALL ALL 0.0.0.0/0 DENY
Inbound :
Rule # Type Protocol Port Range Source Allow / Deny
10 HTTP (80) TCP (6) 80 0.0.0.0/0 ALLOW
120 HTTPS (443) TCP (6) 443 0.0.0.0/0 ALLOW
140 SSH (22) TCP (6) 22 0.0.0.0/0 ALLOW …Run Code Online (Sandbox Code Playgroud)