how to run nginx code example Example 1: how to start nginx in linux sudo systemctl restart nginx Example 2: nginx stop commands sudo systemctl stop nginx