# HG changeset patch # User Yaroslav Zhuravlev # Date 1412347773 -14400 # Node ID b35cdfabe949d0bb97a0e69eae69177bccb76f79 # Parent 03741fb502f46c141efa655b5b12024e21ded45b Command-line parameters: English article added. diff --git a/xml/en/GNUmakefile b/xml/en/GNUmakefile --- a/xml/en/GNUmakefile +++ b/xml/en/GNUmakefile @@ -4,6 +4,7 @@ DOCS = \ windows \ events \ syntax \ + switches \ control \ hash \ syslog \ diff --git a/xml/en/docs/index.xml b/xml/en/docs/index.xml --- a/xml/en/docs/index.xml +++ b/xml/en/docs/index.xml @@ -54,6 +54,10 @@ + + + + diff --git a/xml/en/docs/switches.xml b/xml/en/docs/switches.xml new file mode 100644 --- /dev/null +++ b/xml/en/docs/switches.xml @@ -0,0 +1,91 @@ + + + + +
+ +
+ + +nginx supports the following command-line parameters: + + + +-? | -h—print help +for command-line parameters. + + + +-c file—use an alternative +configuration file instead of a default file. + + + +-g directives— set +global configuration directives, +for example, + +nginx -g "pid /var/run/nginx.pid; worker_processes `sysctl -n hw.ncpu`;" + + + + +-p prefix—set nginx path prefix, +i.e. a directory that will keep server files +(default value is /usr/local/nginx). + + + +-q—suppress non-error messages +during configuration testing. + + + +-s signal—send a signal +to the master process. +The argument signal can be one of: + + +stop—shut down quickly + + +quit—shut down gracefully + + +reload—reload configuration, +start the new worker process with a new configuration, +gracefully shut down old worker processes. + + +reopen—reopen log files + + + + + +-t— test the configuration file: nginx checks the +configuration for correct syntax, and then tries to open files +referred in the configuration. + + + +-v—print nginx version. + + + +-V—print nginx version, compiler version, +and configurŠµ parameters. + + + + + +
+ +