The ngnix is an HTTP and reverse proxy server, as well as a mail proxy server.The nginx web server can be restarted using any one of the following command line syntax:
sudo service nginx restart
OR
sudo /etc/init.d/nginx restart
The same commands can be used to start / stop the nginx server:
sudo service nginx start
sudo service nginx stop
sudo service nginx restart