Created
May 17, 2019 06:54
-
-
Save pictolearn/8823f748e1e447868d3173b619632bf1 to your computer and use it in GitHub Desktop.
Nginx Commands
This file contains 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
# 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