resetart nginx code example Example 1: restart nginx sudo systemctl reload nginx Example 2: stop nginx server sudo systemctl stop nginx