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

Git commands

How to Debug Android TV App using IP

sales forecasting ML model in retail using the Prophet algorithm from the Facebook Prophet library