Skip to content

Instantly share code, notes, and snippets.

@moradi-morteza
Created July 28, 2020 14:54
Show Gist options
  • Save moradi-morteza/fc3775bc7c1f4f2227e948dc39013696 to your computer and use it in GitHub Desktop.
Save moradi-morteza/fc3775bc7c1f4f2227e948dc39013696 to your computer and use it in GitHub Desktop.
[NGINX]
sudo ufw status
sudo systemctl start nginx
sudo systemctl restart nginx
sudo systemctl reload nginx
sudo systemctl enable nginx
sudo nginx -t
sudo nginx -t && sudo service nginx reload
systemctl status nginx
sudo systemctl status apache2
sudo systemctl is-enabled apache2
sudo systemctl disable apache2
sudo systemctl stop apache2
sudo systemctl mask apache2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment