sudo service nginx restart code example
Example 1: restart nginx
sudo systemctl restart nginx
Example 2: ubuntn nginx restart
sudo service nginx restart
Example 3: restart nginx
sudo systemctl reload nginx
Example 4: systemctl reload nginx
systemctl reload nginx