Linux: Restart Nginx WebServer

0
880

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
OR
# /usr/local/nginx/sbin/nginx -s reload

Originally posted 2016-03-10 02:57:42.

LEAVE A REPLY

Please enter your comment!
Please enter your name here