nginx start server code example Example 1: restart nginx sudo systemctl reload nginx Example 2: nginx syntax check $ [sudo] nginx -t