Unable to connect to instance

0

I created a new EC2 web instance.
I set the name tags, selected Amazon Linux, AmazonLinux 2023 AMI, specified 64 bit architecture, t2.micro as the instance type, allow HTTP traffic from the internet, and Launch Instance. The instance launches and is shown as running. However, when I take the IP address provides for the public instance and put HTTP:// in front of it I just get the error This site can't be reached. Have tried it in Chrome and Edge browser.
Apparently there is some step I'm missing that isn't in the directions.

demandé il y a 4 mois255 vues
1 réponse
0

Hello.

Have you installed and started a web server such as Apache on EC2?
If it is not installed or started, connect to EC2 via SSH and execute the following command.

sudo dnf install httpd -y
sudo systemctl start httpd
sudo systemctl enable httpd
profile picture
EXPERT
répondu il y a 4 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions