How to setup Nginx in AWS Ec2 | How to Install Nginx in EC2

setup ec2

Install Nginx in AWS Ec2

Here in this Nginx install in Ubuntu Server of AWS:

Step1: If you already setup EC2 then skip this step

Once you setup Ec2 then you can follow below steps, to setup Nginx in Ec2

Step 2: Open Instance Terminal

Open Ec2 Terminal & Run below commands

sudo apt install nginx
nginx setup in Ec2

Step 3: Check Status of Nginx

sudo service nginx status 
check Nginx status in Ec2

Step 4: Now, check Stop | Start | Restart Nginx

sudo service nginx start

sudo service nginx stop

sudo service nginx restart
Restart nginx in ec2

Step 5: How to confirm Nginx setup successfully?

Enter the public IP address of your EC2 instance, which can be found in the EC2 dashboard. Paste the IP address into your browser’s address bar.

nginx successfully launch

If page show Nginx message then it mean Nginx setup successfully launched

Note: Incase sudo service nginx stop command not work then run this command will reolve the issue

sudo killall nginx

Other Popular Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

web_horizontal
About Us ♢ Disclaimer ♢ Privacy Policy ♢ Terms & Conditions ♢ Contact Us

Copyright © 2023 ResearchThinker.com. All rights reserved.