NGiNX Cheatsheet

MD
R
Markdown

Nginx Web Server, reverse proxy, load balancer and HTTP cache.

Update Default Nginx configuration file

sudo nano /etc/nginx/sites-available/default

Verify configuration file syntax

sudo nginx -t

Reload Ngingx Config

sudo systemctl reload nginx

Restart Ngingx

sudo service nginx restart

Check Ngingx Status

service nginx status ps -aux | grep nginx

Zero Downtime Upgrade

service nginx upgrade

Check Version

nginx -V

Save Readonly file

:w !sudo tee %

Created on 9/17/2017