Nginx commands

NGINX COMMONDS 

  • sudo apt update
  • sudo apt install nginx // INSTALL NGINX SERVER

Step 2 – Adjusting the Firewall

sudo ufw app list
Output
Available applications: Nginx Full Nginx HTTP Nginx HTTPS OpenSSH
sudo ufw allow 'Nginx HTTP'
  • sudo ufw status
     
cd /etc/nginx/conf.d/kriyaniti.com.conf
sudo nano /etc/nginx/sites-available/FlaskApp.conf /
sudo nginx -t
service nginx configtest
sudo systemctl status nginx.service     //CHECK STATUS OF NGINX
sudo systemctl restart nginx     //RESTART NGINX
sudo apt-get purge nginx nginx-common     //REMOVE NGINX WITH ALL DEPEDENCY
sudo apt-get autoremove     // REMOVE COMPLETELY

Comments

Popular posts from this blog

simple inventory management system using Google Apps Script

How to Safely Delete Files and Directories Using Linux Command Line

How to Debug Android TV App using IP