Start, stop, restart nginx

$sudo systemctl start nginx 
$sudo systemctl stop nginx 
$sudo systemctl restart nginx
OR
sudo service nginx start
sudo service nginx stop
sudo service nginx restart
OR 
sudo /etc/init.d/nginx start
sudo /etc/init.d/nginx stop
sudo /etc/init.d/nginx restart

Last updated