ftheophile / wc-lab-terraform-repo

Wirfon Cloud lab exercise repository
0 stars 0 forks source link

Create EC2 instance with nginx server #4

Open ftheophile opened 7 months ago

ftheophile commented 7 months ago

Create EC2 instance with Nginx server with Public IP in the N. Virginia region

vmudame commented 7 months ago

Hello Theophile, I have launched the Ec2 with a nginx server.

Yaaki-Ju commented 4 months ago

Creating an EC2 Instance With Nginx Server.

Here are the steps I followed

1. Launch an EC2 Instance

Image

3. Connect to the EC2 Instance

4. Installed Nginx on the Ubuntu instance using the following command

      _sudo apt install nginx_

4. Started and enabled Nginx:

                  _sudo systemctl start nginx_
                  _sudo systemctl enable nginx_

`5. To test if the Nginx server was up and running, I copied the public IP Address of my Instance and pasted in a new browser.

Image