stop nginx command code example Example 1: ubuntn nginx restart sudo service nginx restart Example 2: nginx stop commands sudo systemctl stop nginx