Hello, everyone. In this article, I will demonstrate how to install and configure Nginx on your Ubuntu/Linux server.

What is Nginx?

So simply, it is open-source software for web serving. If you want to know in detail about it, go through the below link -

Prerequisite

To start with this article, you must have a running Ubuntu server in AWS.

Steps

  1. Firstly, update your server to receive the latest versions of the packages.
sudo apt-get update && sudo apt-get upgrade
  1. Now install the Nginx package.
sudo apt install nginx
  1. Check the list of apps on the firewall and allow the Nginx to go through the firewall.
sudo ufw app list
sudo ufw allow 'Nginx Full'
  1. Now check Nginx's running status. That’s all. You have successfully installed Nginx on the Ubuntu server. If it is running, put apps on the firewall and allow Nginx to proceed, to the next step.
sudo systemctl status nginx
  1. That’s all. Now, you have successfully installed Nginx in the Ubuntu server. To verify, paste your server's public IP Address in the browser. And it will show you this

So by following these 5 simple steps you can easily set up Nginx on your Linux server.

I hope you liked the article. If you have any problems, you can ask me in the comment section.

Share this post