Skip to content

Instantly share code, notes, and snippets.

@dhanar98
Created December 11, 2021 16:55
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 dhanar98/b0c23b9b3f0f6f5ed568bbb2f55925f5 to your computer and use it in GitHub Desktop.
Save dhanar98/b0c23b9b3f0f6f5ed568bbb2f55925f5 to your computer and use it in GitHub Desktop.
Nginx Server basic commands

To Start the Nginx Server

sudo systemctl start nginx

To Stop the Nginx Server

sudo systemctl stop nginx

To Restart the Nginx Server

sudo systemctl restart nginx

To Reload the Nginx Server

Incase any configuration changes made to reload the connection

sudo systemctl reload nginx

To Disable the Nginx Server

Note : By Default the Server is start if we need to disable connection execute this command

sudo systemctl disable nginx

To Enable the Nginx Server

Reboot the Server connection

sudo systemctl enable nginx

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