How to restart nginx?

The nginx package supplies a /etc/init.d/nginx script that provides the usual start|stop|restart|reload … functionality.

/etc/init.d/nginx restart

will restart nginx

as will

service nginx restart

Edit

Here is a link to a script you can use as /etc/init.d/nginx.

Leave a Comment