Last active
November 16, 2016 17:03
-
-
Save ruichuang/9f87c7d875980d203acc71db5a9f0c81 to your computer and use it in GitHub Desktop.
nginx commands on Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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