nginx restart with new config code example Example 1: reload nginx sudo systemctl reload nginx Example 2: nginx stop commands sudo systemctl stop nginx