We need to understand the meaning of NGINX web server and know the meaning of Ubuntu EC2 Instance in order to deploy.
NGINX : It is a well known Open- source web server software that can also be used as a reversed proxy, Load Balancer and HTTP cache.
AN UBUNTU EC2 INSTANCE :It is a virtual server running the ubuntu operative system on Amazon web service (AWS), Elastic compute cloud(EC2)
1: LUNCHING A NEW UBUNTU EC2 INSTANCE ON AWS ACCOUNT.
STEP-1 : Log into AWS Console.
STEP-2: Navigate to Services >EC2> Lunch Instance.
-3-Name the Instance : nginx-webserver.
STEP-4 : Select Ubuntu server 22.04LTS.
STEP-5: Instance Type : t2.micro (Free Tier Eligible)
STEP-6 : KEY PAIR
To create a new key
Name it : nginx-key22
Download the .pem file
STEP- 7 : Security Group Settings :
Allow SSH(Port 22) for remote connection.
Allow HTTP (Port 80) for web access.
3 : CONNECT TO THE INSTANCE USING POWERSHELL AND SSH.
STEP-1 : Get your EC2 Public IPV4 address from the AWS Console.
STEP-2 : Open PowerShell on your local machine.
STEP-3 : Run the SSH Command
SSH-i"C:\Users<YouName>\Downloads\nginx-key.pem"ubuntu@
STEP 4 : Accept the connection by typing yes.
4 : UPDATING UBUNTUN SERVER
5 : INSTALLING AND CONFIGURING NGINX WEB SERVER
STEP 1 - Installing NGINX : sudo apt install nginx-y
STEP 2 - Starting NGINX : sudo systemctl start nginx
STEP 3 - Checking NGINX Status : sudo systemctl status nginx.
STEP 4-Enabling NGINX to Auto-Start:sudo systemctl enable nginx.
6 : TESTING AND CUSTOMIZING THE WEB PAGE
STEP 1 - Testing
Top comments (0)