Skip to content

Instantly share code, notes, and snippets.

@AnthonyLaw
Last active July 3, 2019 08:00
Show Gist options
  • Save AnthonyLaw/a9cc7a6d8f15e9c57381853e7b835405 to your computer and use it in GitHub Desktop.
Save AnthonyLaw/a9cc7a6d8f15e9c57381853e7b835405 to your computer and use it in GitHub Desktop.
nginx-cheatsheet

https://github.com/SimulatedGREG/nginx-cheatsheet

Install Nginx on Ubuntu 18.04

sudo apt update
sudo apt install nginx

Adjusting the Firewall

sudo ufw app list
sudo ufw allow 'Nginx HTTP'

Managing the Nginx Process

sudo systemctl stop nginx
sudo systemctl start nginx
sudo systemctl restart nginx
sudo systemctl reload nginx
sudo systemctl disable nginx
sudo systemctl enable nginx

Debug

sudo nginx -t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment