Skip to content

Instantly share code, notes, and snippets.

@pictolearn
Created May 17, 2019 06:54
Show Gist options
  • Save pictolearn/8823f748e1e447868d3173b619632bf1 to your computer and use it in GitHub Desktop.
Save pictolearn/8823f748e1e447868d3173b619632bf1 to your computer and use it in GitHub Desktop.
Nginx Commands
# STOP NGINX
sudo systemctl stop nginx
#START NGINX
sudo systemctl start nginx
#To stop and then start the service again, type:
sudo systemctl restart nginx
# If you are simply making configuration changes, Nginx can often reload without dropping connections.
# To do this, this command can be used
sudo systemctl reload nginx
# By default, Nginx is configured to start automatically when the server boots.
# If this is not what you want, you can disable this behavior by typing:
sudo systemctl disable nginx
#Renable-service to boot on start up
sudo systemctl enable nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment