How To Install Nginx on Ubuntu 20.04

Step 1 – Installing Nginx

sudo apt update
sudo apt install nginx

Step 2 – Adjusting the Firewall

sudo ufw app list
sudo ufw allow 'Nginx HTTP'
sudo ufw status

Step 3 – Stop, start and Restart Nginx

sudo systemctl stop nginx
sudo systemctl start nginx
sudo systemctl restart nginx

Leave a Reply

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