Monday , 24 October 2016
Home » Linux Basics » Linux: Restart Nginx WebServer

Linux: Restart Nginx WebServer

How do I restart nginx web server under Linux?

To restart nginx web server use any one of the following command as a root user:
# /etc/init.d/nginx restart
However, recommed way is as follows which should work with any Linux distribution :
# nginx -s reload
# /usr/local/nginx/sbin/nginx -s reload

About admin

I have been working with Linux based systems since 2002. I hope the article published on this site will be useful to those new to server administration.

Check Also


CentOS and RHEL 7 Restart, Stop, Start Networking Commands

I recently installed CentOS Linux version 7 or Red Hat Enterprise Linux version 7. How …