service stop ngnix code example Example 1: ubuntn nginx restart sudo service nginx restart Example 2: restart nginx sudo systemctl reload nginx