Check nginx configuration
The command will not affect your current running nginx service:
nginx -t
It will check all the included configuration files and try to access all the auxiliary files like logs or pids to warn you about their nonexistence or insufficient permissions