You can install NGINX on the Red Hat/Amazon (yum) and Ubuntu Linux distributions. For full instructions and available distributions, see NGINX documentation.
Run one of the following commands according to your Linux system:
sudo yum install nginx
sudo apt-get install nginx
(Optional) Verify the NGINX installation by running the following command:
sudo nginx -v