nginx restarten code example
Example 1: restart nginx
sudo systemctl restart nginx
Example 2: Start / Restart / Stop Nginx Commands
sudo systemctl start nginx
sudo systemctl stop nginx
sudo systemctl restart nginx
sudo service nginx start
sudo service nginx stop
sudo service nginx restart
sudo /etc/init.d/nginx start
sudo /etc/init.d/nginx stop
sudo /etc/init.d/nginx restart