Skip to content

Instantly share code, notes, and snippets.

@sandheepg
Created July 28, 2017 12:46
Show Gist options
  • Save sandheepg/d8a93cc5bab155358cd624ef514183e2 to your computer and use it in GitHub Desktop.
Save sandheepg/d8a93cc5bab155358cd624ef514183e2 to your computer and use it in GitHub Desktop.
Nginx Restart

After modifying the configuration files for nginx, type

sudo nginx -t

to check for any syntax errors.

sudo nginx -s reload

to reload the configuration files and

sudo service nginx restart
OR
sudo /etc/init.d/nginx restart
OR
sudo systmctl restart nginx

to restart nginx for the changes to take effect.

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