| nginx -h | print help for command-line parameters |
| nginx -c file | use an alternative configuration file instead of a default file |
| nginx -e file | use an alternative error log file to store the log instead of a default file (1.19.5) |
| nginx -g directives | set global configuration directives, for example, nginx -g "pid /var/run/nginx.pid |
| nginx -l port | enable nginx control REST API on a specified port or UNIX-domain socket (1.29.8). This |
| nginx -p prefix | set nginx path prefix, i.e. a directory that will keep server files |
| nginx -q | suppress non-error messages during configuration testing |
| nginx -s signal | send a signal to the master process. The argument signal can be one of: stop - shut down |
| nginx -t | test the configuration file: nginx checks the configuration for correct syntax, and then tries |
| nginx -T | same as -t, but additionally dump configuration files to standard output (1.9.2) |
| nginx -v | print nginx version |
| nginx -V | print nginx version, compiler version, and configure parameters |