nginx windows stop code example Example 1: stop nginx sudo systemctl stop nginx Example 2: stop nginx sudo service nginx restart