=encoding utf-8 =head1 Name switches - Command-line parameters =head1 nginx supports the following command-line parameters: =over =item * C<-?> E C<-h>Eprint help for command-line parameters. =item * C<-c I>>Euse an alternative configuration I> instead of a default file. =item * C<-e I>>Euse an alternative error log I> to store the log instead of a default file (1.19.5). The special value C selects the standard error file. =item * C<-g I>>Eset L, for example, nginx -g "pid /var/run/nginx.pid; worker_processes `sysctl -n hw.ncpu`;" =item * C<-p I>>Eset nginx path prefix, i.e. a directory that will keep server files (default value is IusrElocalEnginx>>). =item * C<-q>Esuppress non-error messages during configuration testing. =item * C<-s I>>Esend a I to the master process. The argument I can be one of: =over =item * CEshut down quickly =item * CEshut down gracefully =item * CEreload configuration, start the new worker process with a new configuration, gracefully shut down old worker processes. =item * CEreopen log files =back =item * C<-t>Etest the configuration file: nginx checks the configuration for correct syntax, and then tries to open files referred in the configuration. =item * C<-T>Esame as C<-t>, but additionally dump configuration files to standard output (1.9.2). =item * C<-v>Eprint nginx version. =item * C<-V>Eprint nginx version, compiler version, and configure parameters. =back