# HG changeset patch # User Yaroslav Zhuravlev # Date 1412347773 -14400 # Node ID b35cdfabe949d0bb97a0e69eae69177bccb76f79 # Parent 03741fb502f46c141efa655b5b12024e21ded45b Command-line parameters: English article added. diff -r 03741fb502f4 -r b35cdfabe949 xml/en/GNUmakefile --- a/xml/en/GNUmakefile Fri Oct 03 18:49:28 2014 +0400 +++ b/xml/en/GNUmakefile Fri Oct 03 18:49:33 2014 +0400 @@ -4,6 +4,7 @@ windows \ events \ syntax \ + switches \ control \ hash \ syslog \ diff -r 03741fb502f4 -r b35cdfabe949 xml/en/docs/index.xml --- a/xml/en/docs/index.xml Fri Oct 03 18:49:28 2014 +0400 +++ b/xml/en/docs/index.xml Fri Oct 03 18:49:33 2014 +0400 @@ -54,6 +54,10 @@ + + + + diff -r 03741fb502f4 -r b35cdfabe949 xml/en/docs/switches.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xml/en/docs/switches.xml Fri Oct 03 18:49:33 2014 +0400 @@ -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. + + + + + +
+ +