Ich habe eine neue Ubuntu-Instanz in AWS erstellt, ich kann SSH erfolgreich verbinden. aber wenn ich versuche, diesen Befehl Installieren von Paketen verwendet wird, wird es nicht funktionieren:AWS Ubuntu-Instanz kann die Welt nicht erreichen
sudo apt-get install apache2
...
...
0% [Connecting to ap-southeast-2.ec2.archive.ubuntu.com (91.189.91.23)]^[email protected]:/etc$
Dieser nie vorwärts bewegt!
Ich versuchte ping google.com.au, auch keine Antwort.
Hier ist die VPC Config von AWS:
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
* ALL Traffic ALL ALL 0.0.0.0/0 DENY
Sicherheitsgruppe Outbound-Einstellungen:
Type Protocol Port Range Destination
ALL Traffic ALL ALL 0.0.0.0/0
Routing-Tabelleneinstellung:
Destination Target Status Propagated
10.1.0.0/24 local Active No
0.0.0.0/0 igw-cfe30caa Active No
Was hier falsch sein könnte?
EDIT: nslookup & Dig Befehl funktioniert gut!
Danke!
Ton wählen s wie DNS ist für Sie kaputt. Versuchen Sie es mit "dig google.com.au", um zu sehen, ob DNS Adresssuche durchführen kann. – maurice
Starten Sie die ec2-Instanz mit Ihrem eigenen AMI-Image oder Amazon ami? Scheint, dass dein Bild ein Problem hat. – BMW
Eigentlich graben google.com.au gut! Auch der Befehl nslookup funktioniert. Ich benutze AWS ami, benutze einfach den Assistenten – askanaan