Skip to content

Instantly share code, notes, and snippets.

@ruichuang
Last active November 16, 2016 17:03
Show Gist options
  • Save ruichuang/9f87c7d875980d203acc71db5a9f0c81 to your computer and use it in GitHub Desktop.
Save ruichuang/9f87c7d875980d203acc71db5a9f0c81 to your computer and use it in GitHub Desktop.
nginx commands on Ubuntu
sudo service nginx start
sudo service nginx stop
sudo service nginx restart
view status of your server:
sudo service status nginx
reload nginx server(after change on config file such as nginx.con):
sudo service nginx reload
folowing command help to check sytax error in nginx:
nginx -t -c /etc/nginx/nginx.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment