Installation in Linux(ubuntu)
Since it is a web server it runs on port no. 80, for installing nginx execute the below command
sudo apt update -y && sudo apt install nginx -y
Once it is successfully installed, check the nginx service status by executing
sudo service nginx status
After that hit your server ip in browser you should be able to see the welcome page for nginx