linux nginx stop and start code example Example 1: ubuntn nginx restart sudo service nginx restart Example 2: restart nginx sudo systemctl reload nginx