Nginx commands
NGINX COMMONDS
- sudo apt update
- sudo apt install nginx // INSTALL NGINX SERVER
Step 2 – Adjusting the Firewall
sudo ufw app list
OutputAvailable 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
Post a Comment