Skip to content

Instantly share code, notes, and snippets.

@endemic
Created May 17, 2016 17:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save endemic/1a2301b6f799b03c878a9684f0f3353a to your computer and use it in GitHub Desktop.
Save endemic/1a2301b6f799b03c878a9684f0f3353a to your computer and use it in GitHub Desktop.
Ubuntu/Debian cheatsheet

update system

sudo apt-get update sudo apt-get upgrade

nginx config

/etc/nginx/nginx.conf /etc/nginx/sites-available/*

nginx logs

/var/log/nginx/access.log /var/log/nginx/error.log

restart nginx

sudo service nginx restart

check nginx config

sudo nginx -c /etc/nginx/nginx.conf -t

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