Mercurial > hg > nginx-site
annotate xml/ru/docs/switches.xml @ 2065:a4c470ea462d
Linux packages: updated the list of supported distributions.
author | Konstantin Pavlov <thresh@nginx.com> |
---|---|
date | Tue, 17 Oct 2017 16:58:25 +0300 |
parents | 259a48800748 |
children | 2b71a9ef37c1 |
rev | line source |
---|---|
580
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
1 <!-- |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
2 Copyright (C) Igor Sysoev |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
3 Copyright (C) Nginx, Inc. |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
4 --> |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
5 |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
6 <!DOCTYPE article SYSTEM "../../../dtd/article.dtd"> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
7 |
123
7db449e89e92
Unified the use of the "name" attribute instead of "title".
Ruslan Ermilov <ru@nginx.com>
parents:
76
diff
changeset
|
8 <article name="Параметры командной строки nginx" |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
9 link="/ru/docs/switches.html" |
589 | 10 lang="ru" |
1515
259a48800748
Documented the -T command-line parameter.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1331
diff
changeset
|
11 rev="3"> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
12 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
13 <section> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
14 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
15 <para> |
1327
03741fb502f4
Command-line parameters: updated with missing parameters.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
589
diff
changeset
|
16 nginx поддерживает следующие параметры командной строки: |
461 | 17 <list type="bullet"> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
18 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
19 <listitem> |
1327
03741fb502f4
Command-line parameters: updated with missing parameters.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
589
diff
changeset
|
20 <literal>-?</literal> | <literal>-h</literal>—вывод справки |
03741fb502f4
Command-line parameters: updated with missing parameters.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
589
diff
changeset
|
21 по параметрам командной строки. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
22 </listitem> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
23 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
24 <listitem> |
1327
03741fb502f4
Command-line parameters: updated with missing parameters.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
589
diff
changeset
|
25 <literal>-c <value>файл</value></literal>—использование альтернативного |
03741fb502f4
Command-line parameters: updated with missing parameters.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
589
diff
changeset
|
26 конфигурационного файла <value>файл</value> вместо файла по умолчанию. |
03741fb502f4
Command-line parameters: updated with missing parameters.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
589
diff
changeset
|
27 </listitem> |
03741fb502f4
Command-line parameters: updated with missing parameters.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
589
diff
changeset
|
28 |
03741fb502f4
Command-line parameters: updated with missing parameters.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
589
diff
changeset
|
29 <listitem> |
03741fb502f4
Command-line parameters: updated with missing parameters.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
589
diff
changeset
|
30 <literal>-g <value>директивы</value></literal>—задание |
03741fb502f4
Command-line parameters: updated with missing parameters.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
589
diff
changeset
|
31 <link doc="ngx_core_module.xml">глобальных директив конфигурации</link>, |
03741fb502f4
Command-line parameters: updated with missing parameters.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
589
diff
changeset
|
32 например |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
33 <programlisting> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
34 nginx -g "pid /var/run/nginx.pid; worker_processes `sysctl -n hw.ncpu`;" |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
35 </programlisting> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
36 </listitem> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
37 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
38 <listitem> |
1327
03741fb502f4
Command-line parameters: updated with missing parameters.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
589
diff
changeset
|
39 <literal>-p <value>префикс</value></literal>—задание префикса пути nginx, |
03741fb502f4
Command-line parameters: updated with missing parameters.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
589
diff
changeset
|
40 т.е. каталога, в котором будут находиться файлы сервера |
1331
7ac25c159209
Command-line parameters: empty spaces after — removed.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1327
diff
changeset
|
41 (по умолчанию—каталог <value>/usr/local/nginx</value>). |
1327
03741fb502f4
Command-line parameters: updated with missing parameters.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
589
diff
changeset
|
42 </listitem> |
03741fb502f4
Command-line parameters: updated with missing parameters.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
589
diff
changeset
|
43 |
03741fb502f4
Command-line parameters: updated with missing parameters.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
589
diff
changeset
|
44 <listitem> |
1331
7ac25c159209
Command-line parameters: empty spaces after — removed.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1327
diff
changeset
|
45 <literal>-q</literal>—вывод только сообщений об ошибках |
1327
03741fb502f4
Command-line parameters: updated with missing parameters.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
589
diff
changeset
|
46 при тестировании конфигурации. |
03741fb502f4
Command-line parameters: updated with missing parameters.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
589
diff
changeset
|
47 </listitem> |
03741fb502f4
Command-line parameters: updated with missing parameters.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
589
diff
changeset
|
48 |
03741fb502f4
Command-line parameters: updated with missing parameters.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
589
diff
changeset
|
49 <listitem> |
1331
7ac25c159209
Command-line parameters: empty spaces after — removed.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1327
diff
changeset
|
50 <literal>-s <value>сигнал</value></literal>—отправка <i>сигнала</i> |
1327
03741fb502f4
Command-line parameters: updated with missing parameters.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
589
diff
changeset
|
51 главному процессу. |
03741fb502f4
Command-line parameters: updated with missing parameters.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
589
diff
changeset
|
52 Аргументом <i>сигнал</i> может быть: |
03741fb502f4
Command-line parameters: updated with missing parameters.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
589
diff
changeset
|
53 <list type="bullet"> |
03741fb502f4
Command-line parameters: updated with missing parameters.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
589
diff
changeset
|
54 <listitem> |
03741fb502f4
Command-line parameters: updated with missing parameters.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
589
diff
changeset
|
55 <literal>stop</literal>—быстрое завершение |
03741fb502f4
Command-line parameters: updated with missing parameters.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
589
diff
changeset
|
56 </listitem> |
03741fb502f4
Command-line parameters: updated with missing parameters.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
589
diff
changeset
|
57 <listitem> |
03741fb502f4
Command-line parameters: updated with missing parameters.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
589
diff
changeset
|
58 <literal>quit</literal>—плавное завершение |
03741fb502f4
Command-line parameters: updated with missing parameters.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
589
diff
changeset
|
59 </listitem> |
03741fb502f4
Command-line parameters: updated with missing parameters.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
589
diff
changeset
|
60 <listitem> |
03741fb502f4
Command-line parameters: updated with missing parameters.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
589
diff
changeset
|
61 <literal>reload</literal>—перезагрузка конфигурации, |
03741fb502f4
Command-line parameters: updated with missing parameters.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
589
diff
changeset
|
62 старт нового рабочего процесса с новой конфигурацией, |
03741fb502f4
Command-line parameters: updated with missing parameters.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
589
diff
changeset
|
63 плавное завершение старых рабочих процессов. |
03741fb502f4
Command-line parameters: updated with missing parameters.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
589
diff
changeset
|
64 </listitem> |
03741fb502f4
Command-line parameters: updated with missing parameters.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
589
diff
changeset
|
65 <listitem> |
03741fb502f4
Command-line parameters: updated with missing parameters.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
589
diff
changeset
|
66 <literal>reopen</literal>—переоткрытие лог-файлов |
03741fb502f4
Command-line parameters: updated with missing parameters.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
589
diff
changeset
|
67 </listitem> |
03741fb502f4
Command-line parameters: updated with missing parameters.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
589
diff
changeset
|
68 </list> |
03741fb502f4
Command-line parameters: updated with missing parameters.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
589
diff
changeset
|
69 </listitem> |
03741fb502f4
Command-line parameters: updated with missing parameters.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
589
diff
changeset
|
70 |
03741fb502f4
Command-line parameters: updated with missing parameters.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
589
diff
changeset
|
71 <listitem> |
03741fb502f4
Command-line parameters: updated with missing parameters.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
589
diff
changeset
|
72 <literal>-t</literal>—тестирование конфигурационного файла: |
03741fb502f4
Command-line parameters: updated with missing parameters.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
589
diff
changeset
|
73 nginx проверяет |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
74 синтаксическую правильность конфигурации, а затем пытается открыть файлы, |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
75 описанные в конфигурации. |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
76 </listitem> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
77 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
78 <listitem> |
1515
259a48800748
Documented the -T command-line parameter.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1331
diff
changeset
|
79 <literal>-T</literal>—то же, что и <literal>-t</literal>, |
259a48800748
Documented the -T command-line parameter.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1331
diff
changeset
|
80 а также вывод конфигурационных файлов |
259a48800748
Documented the -T command-line parameter.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1331
diff
changeset
|
81 в стандартный поток вывода (1.9.2). |
259a48800748
Documented the -T command-line parameter.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1331
diff
changeset
|
82 </listitem> |
259a48800748
Documented the -T command-line parameter.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1331
diff
changeset
|
83 |
259a48800748
Documented the -T command-line parameter.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1331
diff
changeset
|
84 <listitem> |
1327
03741fb502f4
Command-line parameters: updated with missing parameters.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
589
diff
changeset
|
85 <literal>-v</literal>—вывод версии nginx. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
86 </listitem> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
87 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
88 <listitem> |
1327
03741fb502f4
Command-line parameters: updated with missing parameters.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
589
diff
changeset
|
89 <literal>-V</literal>—вывод версии nginx, версии компилятора |
03741fb502f4
Command-line parameters: updated with missing parameters.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
589
diff
changeset
|
90 и параметров конфигурации сборки. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
91 </listitem> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
92 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
93 </list> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
94 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
95 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
96 </section> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
97 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
98 </article> |