Mercurial > hg > nginx-site
annotate xml/ru/docs/ngx_core_module.xml @ 1522:ee91c95fca48
Corrected Russian translation of the ssl_session_cache directive.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Tue, 30 Jun 2015 17:15:29 +0300 |
parents | d1e1a8d34bce |
children | c0d1026e7e7b |
rev | line source |
---|---|
222
bfe3eff81d04
Removed redundant encoding specification.
Ruslan Ermilov <ru@nginx.com>
parents:
104
diff
changeset
|
1 <?xml version="1.0"?> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
2 |
580
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
574
diff
changeset
|
3 <!-- |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
574
diff
changeset
|
4 Copyright (C) Igor Sysoev |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
574
diff
changeset
|
5 Copyright (C) Nginx, Inc. |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
574
diff
changeset
|
6 --> |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
574
diff
changeset
|
7 |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
8 <!DOCTYPE module SYSTEM "../../../dtd/module.dtd"> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
9 |
255
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
10 <module name="Основная функциональность" |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
11 link="/ru/docs/ngx_core_module.html" |
589 | 12 lang="ru" |
1480
d1e1a8d34bce
Documented mail support in error_log.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1465
diff
changeset
|
13 rev="15"> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
14 |
255
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
15 <section id="example" name="Пример конфигурации"> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
16 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
17 <para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
18 <example> |
255
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
19 user www www; |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
20 worker_processes 2; |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
21 |
255
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
22 error_log /var/log/nginx-error.log info; |
76
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 events { |
255
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
25 use kqueue; |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
26 worker_connections 2048; |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
27 } |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
28 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
29 ... |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
30 </example> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
31 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
32 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
33 </section> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
34 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
35 |
255
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
36 <section id="directives" name="Директивы"> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
37 |
571
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
38 <directive name="accept_mutex"> |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
39 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
40 <default>on</default> |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
41 <context>events</context> |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
42 |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
43 <para> |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
44 Если <literal>accept_mutex</literal> включён, |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
45 рабочие процессы будут принимать новые соединения по очереди. |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
46 В противном случае о новых соединениях будет сообщаться сразу всем рабочим |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
47 процессам, и при низкой интенсивности поступления новых соединений |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
48 часть рабочих процессов может работать вхолостую. |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
49 </para> |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
50 |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
51 </directive> |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
52 |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
53 |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
54 <directive name="accept_mutex_delay"> |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
55 <syntax><value>время</value></syntax> |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
56 <default>500ms</default> |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
57 <context>events</context> |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
58 |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
59 <para> |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
60 При включённом <link id="accept_mutex"/> задаёт максимальное время, |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
61 в течение которого рабочий процесс вновь попытается начать принимать |
957
6d9d4bb571a9
Text review of the ngx_core_module.
Egor Nikitin <yegor.nikitin@gmail.com>
parents:
935
diff
changeset
|
62 новые соединения, если в настоящий момент новые соединения принимает |
6d9d4bb571a9
Text review of the ngx_core_module.
Egor Nikitin <yegor.nikitin@gmail.com>
parents:
935
diff
changeset
|
63 другой рабочий процесс. |
571
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
64 </para> |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
65 |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
66 </directive> |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
67 |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
68 |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
69 <directive name="daemon"> |
271 | 70 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
102
c76a257f3fd4
The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents:
99
diff
changeset
|
71 <default>on</default> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
72 <context>main</context> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
73 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
74 <para> |
255
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
75 Определяет, будет ли nginx запускаться в режиме демона. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
76 Используется в основном для разработки. |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
77 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
78 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
79 </directive> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
80 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
81 |
516
8e1356bd281a
Documented the "debug_connection" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
469
diff
changeset
|
82 <directive name="debug_connection"> |
8e1356bd281a
Documented the "debug_connection" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
469
diff
changeset
|
83 <syntax> |
8e1356bd281a
Documented the "debug_connection" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
469
diff
changeset
|
84 <value>адрес</value> | |
8e1356bd281a
Documented the "debug_connection" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
469
diff
changeset
|
85 <value>CIDR</value> | |
8e1356bd281a
Documented the "debug_connection" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
469
diff
changeset
|
86 <literal>unix:</literal></syntax> |
8e1356bd281a
Documented the "debug_connection" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
469
diff
changeset
|
87 <default/> |
8e1356bd281a
Documented the "debug_connection" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
469
diff
changeset
|
88 <context>events</context> |
8e1356bd281a
Documented the "debug_connection" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
469
diff
changeset
|
89 |
8e1356bd281a
Documented the "debug_connection" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
469
diff
changeset
|
90 <para> |
8e1356bd281a
Documented the "debug_connection" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
469
diff
changeset
|
91 Включает отладочный лог для отдельных клиентских соединений. |
8e1356bd281a
Documented the "debug_connection" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
469
diff
changeset
|
92 Для остальных соединений используется уровень лога, заданный директивой |
8e1356bd281a
Documented the "debug_connection" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
469
diff
changeset
|
93 <link id="error_log"/>. |
523 | 94 Отлаживаемые соединения задаются IPv4 или IPv6 (1.3.0, 1.2.1) |
95 адресом или сетью. | |
614
0526cac4637e
Removed intimate details of the "debug_connection" directive's
Ruslan Ermilov <ru@nginx.com>
parents:
610
diff
changeset
|
96 Соединение может быть также задано при помощи имени хоста. |
523 | 97 Отладочный лог для соединений через UNIX-сокеты (1.3.0, 1.2.1) |
98 включается параметром “<literal>unix:</literal>”. | |
516
8e1356bd281a
Documented the "debug_connection" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
469
diff
changeset
|
99 <example> |
8e1356bd281a
Documented the "debug_connection" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
469
diff
changeset
|
100 events { |
8e1356bd281a
Documented the "debug_connection" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
469
diff
changeset
|
101 debug_connection 127.0.0.1; |
8e1356bd281a
Documented the "debug_connection" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
469
diff
changeset
|
102 debug_connection localhost; |
8e1356bd281a
Documented the "debug_connection" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
469
diff
changeset
|
103 debug_connection 192.0.2.0/24; |
8e1356bd281a
Documented the "debug_connection" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
469
diff
changeset
|
104 debug_connection ::1; |
8e1356bd281a
Documented the "debug_connection" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
469
diff
changeset
|
105 debug_connection 2001:0db8::/32; |
8e1356bd281a
Documented the "debug_connection" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
469
diff
changeset
|
106 debug_connection unix:; |
8e1356bd281a
Documented the "debug_connection" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
469
diff
changeset
|
107 ... |
8e1356bd281a
Documented the "debug_connection" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
469
diff
changeset
|
108 } |
8e1356bd281a
Documented the "debug_connection" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
469
diff
changeset
|
109 </example> |
8e1356bd281a
Documented the "debug_connection" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
469
diff
changeset
|
110 <note> |
8e1356bd281a
Documented the "debug_connection" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
469
diff
changeset
|
111 Для работы директивы необходимо сконфигурировать nginx с параметром |
913
9a65d437da42
Link to "A debugging log" from "debug_connection" and "error_log".
Ruslan Ermilov <ru@nginx.com>
parents:
804
diff
changeset
|
112 <literal>--with-debug</literal>, |
9a65d437da42
Link to "A debugging log" from "debug_connection" and "error_log".
Ruslan Ermilov <ru@nginx.com>
parents:
804
diff
changeset
|
113 см. “<link doc="debugging_log.xml"/>”. |
516
8e1356bd281a
Documented the "debug_connection" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
469
diff
changeset
|
114 </note> |
8e1356bd281a
Documented the "debug_connection" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
469
diff
changeset
|
115 </para> |
8e1356bd281a
Documented the "debug_connection" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
469
diff
changeset
|
116 |
8e1356bd281a
Documented the "debug_connection" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
469
diff
changeset
|
117 </directive> |
8e1356bd281a
Documented the "debug_connection" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
469
diff
changeset
|
118 |
8e1356bd281a
Documented the "debug_connection" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
469
diff
changeset
|
119 |
574 | 120 <directive name="debug_points"> |
121 <syntax><literal>abort</literal> | <literal>stop</literal></syntax> | |
122 <default/> | |
123 <context>main</context> | |
124 | |
125 <para> | |
126 Эта директива используется для отладки. | |
127 </para> | |
128 | |
129 <para> | |
130 В случае обнаружения внутренней ошибки, например, утечки сокетов в момент | |
131 перезапуска рабочих процессов, включение <literal>debug_points</literal> | |
132 приводит к созданию core-файла (<literal>abort</literal>) | |
133 или остановке процесса (<literal>stop</literal>) с целью последующей | |
134 диагностики с помощью системного отладчика. | |
135 </para> | |
136 | |
137 </directive> | |
138 | |
139 | |
255
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
140 <directive name="error_log"> |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
141 <syntax> |
1175
a05d9fa73ce2
Documented the syslog support in "error_log" and "access_log".
Yaroslav Zhuravlev <yar@nginx.com>
parents:
957
diff
changeset
|
142 <value>файл</value> | <literal>stderr</literal> | |
1449
c79501e16e26
Documented cyclic memory buffer support for error_log.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1436
diff
changeset
|
143 <literal>syslog:</literal><literal>server</literal>=<value>адрес</value>[,<value>параметр</value>=<value>значение</value>] | |
c79501e16e26
Documented cyclic memory buffer support for error_log.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1436
diff
changeset
|
144 <literal>memory:</literal><value>размер</value> |
271 | 145 [<literal>debug</literal> | |
146 <literal>info</literal> | | |
147 <literal>notice</literal> | | |
148 <literal>warn</literal> | | |
149 <literal>error</literal> | | |
150 <literal>crit</literal> | | |
151 <literal>alert</literal> | | |
152 <literal>emerg</literal>]</syntax> | |
255
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
153 <default>logs/error.log error</default> |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
154 <context>main</context> |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
155 <context>http</context> |
1480
d1e1a8d34bce
Documented mail support in error_log.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1465
diff
changeset
|
156 <context>mail</context> |
1450
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1449
diff
changeset
|
157 <context>stream</context> |
255
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
158 <context>server</context> |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
159 <context>location</context> |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
160 |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
161 <para> |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
162 Конфигурирует запись в лог. |
935
3860b37d56c0
Documented support for multiple "error_log" directives.
Vladimir Homutov <vl@nginx.com>
parents:
913
diff
changeset
|
163 На одном уровне может использоваться несколько логов (1.5.2). |
255
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
164 </para> |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
165 |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
166 <para> |
271 | 167 Первый параметр задаёт файл, который будет хранить лог. |
255
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
168 <!-- |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
169 Если имя файла не абсолютное, к нему добавляется в начало путь префикса. |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
170 --> |
455
571b790ddf9e
error_log: documented the special value "stderr" and default logging level.
Ruslan Ermilov <ru@nginx.com>
parents:
444
diff
changeset
|
171 Специальное значение <literal>stderr</literal> выбирает стандартный файл ошибок. |
1285
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
1205
diff
changeset
|
172 Запись в <link doc="syslog.xml">syslog</link> настраивается указанием префикса |
1175
a05d9fa73ce2
Documented the syslog support in "error_log" and "access_log".
Yaroslav Zhuravlev <yar@nginx.com>
parents:
957
diff
changeset
|
173 “<literal>syslog:</literal>”. |
1449
c79501e16e26
Documented cyclic memory buffer support for error_log.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1436
diff
changeset
|
174 Запись в |
c79501e16e26
Documented cyclic memory buffer support for error_log.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1436
diff
changeset
|
175 <link doc="debugging_log.xml" id="memory">кольцевой буфер в памяти</link> |
c79501e16e26
Documented cyclic memory buffer support for error_log.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1436
diff
changeset
|
176 настраивается указанием префикса “<literal>memory:</literal>” и |
c79501e16e26
Documented cyclic memory buffer support for error_log.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1436
diff
changeset
|
177 <value>размера</value> буфера и как правило используется для отладки (1.7.11). |
255
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
178 </para> |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
179 |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
180 <para> |
271 | 181 Второй параметр определяет уровень лога. |
957
6d9d4bb571a9
Text review of the ngx_core_module.
Egor Nikitin <yegor.nikitin@gmail.com>
parents:
935
diff
changeset
|
182 Уровни лога, указанные выше, перечислены в порядке возрастания важности. |
255
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
183 При установке определённого уровня в лог попадают все сообщения |
957
6d9d4bb571a9
Text review of the ngx_core_module.
Egor Nikitin <yegor.nikitin@gmail.com>
parents:
935
diff
changeset
|
184 указанного уровня и уровней большей важности. |
271 | 185 Например, при стандартном уровне <literal>error</literal> в лог попадают |
186 сообщения уровней <literal>error</literal>, <literal>crit</literal>, | |
187 <literal>alert</literal> и <literal>emerg</literal>. | |
455
571b790ddf9e
error_log: documented the special value "stderr" and default logging level.
Ruslan Ermilov <ru@nginx.com>
parents:
444
diff
changeset
|
188 Если этот параметр не задан, используется <literal>error</literal>. |
255
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
189 <note> |
271 | 190 Для работы уровня лога <literal>debug</literal> необходимо сконфигурировать |
913
9a65d437da42
Link to "A debugging log" from "debug_connection" and "error_log".
Ruslan Ermilov <ru@nginx.com>
parents:
804
diff
changeset
|
191 nginx с <literal>--with-debug</literal>, |
9a65d437da42
Link to "A debugging log" from "debug_connection" and "error_log".
Ruslan Ermilov <ru@nginx.com>
parents:
804
diff
changeset
|
192 см. “<link doc="debugging_log.xml"/>”. |
255
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
193 </note> |
1450
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1449
diff
changeset
|
194 |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1449
diff
changeset
|
195 <note> |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1449
diff
changeset
|
196 Директива может быть указана на |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1449
diff
changeset
|
197 уровне <literal>stream</literal> |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1449
diff
changeset
|
198 начиная с версии 1.7.11. |
f5b5eefc43cb
Updated commercial docs for the upcoming release.
Ruslan Ermilov <ru@nginx.com>
parents:
1449
diff
changeset
|
199 </note> |
1480
d1e1a8d34bce
Documented mail support in error_log.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1465
diff
changeset
|
200 |
d1e1a8d34bce
Documented mail support in error_log.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1465
diff
changeset
|
201 <note> |
d1e1a8d34bce
Documented mail support in error_log.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1465
diff
changeset
|
202 Директива может быть указана на |
d1e1a8d34bce
Documented mail support in error_log.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1465
diff
changeset
|
203 уровне <literal>mail</literal> |
d1e1a8d34bce
Documented mail support in error_log.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1465
diff
changeset
|
204 начиная с версии 1.9.0. |
d1e1a8d34bce
Documented mail support in error_log.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
1465
diff
changeset
|
205 </note> |
255
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
206 </para> |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
207 |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
208 </directive> |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
209 |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
210 |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
211 <directive name="env"> |
271 | 212 <syntax><value>переменная</value>[=<value>значение</value>]</syntax> |
102
c76a257f3fd4
The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents:
99
diff
changeset
|
213 <default>TZ</default> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
214 <context>main</context> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
215 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
216 <para> |
804
d22421dc5d00
Clarified the effects of the "env" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
764
diff
changeset
|
217 По умолчанию nginx удаляет все переменные окружения, унаследованные |
d22421dc5d00
Clarified the effects of the "env" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
764
diff
changeset
|
218 от своего родительского процесса, кроме переменной TZ. |
d22421dc5d00
Clarified the effects of the "env" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
764
diff
changeset
|
219 Эта директива позволяет сохранить часть унаследованных переменных, |
d22421dc5d00
Clarified the effects of the "env" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
764
diff
changeset
|
220 поменять им значения или же создать новые переменные окружения. |
d22421dc5d00
Clarified the effects of the "env" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
764
diff
changeset
|
221 Эти переменные затем: |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
222 <list type="bullet"> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
223 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
224 <listitem> |
804
d22421dc5d00
Clarified the effects of the "env" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
764
diff
changeset
|
225 наследуются во время |
79
0a45870d0160
Fixed cross-document links to use doc and id.
Maxim Dounin <mdounin@mdounin.ru>
parents:
76
diff
changeset
|
226 <link doc="control.xml" id="upgrade">обновления исполняемого файла на лету</link>; |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
227 </listitem> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
228 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
229 <listitem> |
804
d22421dc5d00
Clarified the effects of the "env" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
764
diff
changeset
|
230 используются модулем |
79
0a45870d0160
Fixed cross-document links to use doc and id.
Maxim Dounin <mdounin@mdounin.ru>
parents:
76
diff
changeset
|
231 <link doc="http/ngx_http_perl_module.xml">ngx_http_perl_module</link>; |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
232 </listitem> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
233 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
234 <listitem> |
804
d22421dc5d00
Clarified the effects of the "env" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
764
diff
changeset
|
235 используются рабочими процессами. |
d22421dc5d00
Clarified the effects of the "env" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
764
diff
changeset
|
236 Следует иметь в виду, что управление поведением системных библиотек |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
237 подобным образом возможно не всегда, поскольку зачастую библиотеки используют |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
238 переменные только во время инициализации, то есть ещё до того, как их |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
239 можно задать с помощью данной директивы. |
957
6d9d4bb571a9
Text review of the ngx_core_module.
Egor Nikitin <yegor.nikitin@gmail.com>
parents:
935
diff
changeset
|
240 Исключением из этого является упомянутое выше |
255
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
241 <link doc="control.xml" id="upgrade">обновление исполняемого файла на лету</link>. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
242 </listitem> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
243 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
244 </list> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
245 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
246 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
247 <para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
248 Если переменная TZ не описана явно, то она всегда наследуется |
255
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
249 и всегда доступна модулю |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
250 <link doc="http/ngx_http_perl_module.xml">ngx_http_perl_module</link>. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
251 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
252 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
253 <para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
254 Пример использования: |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
255 <example> |
255
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
256 env MALLOC_OPTIONS; |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
257 env PERL5LIB=/data/site/modules; |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
258 env OPENSSL_ALLOW_PROXY_CERTS=1; |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
259 </example> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
260 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
261 |
444
43c84d19bf92
Added a note about the NGINX environment variable.
Ruslan Ermilov <ru@nginx.com>
parents:
289
diff
changeset
|
262 <para> |
43c84d19bf92
Added a note about the NGINX environment variable.
Ruslan Ermilov <ru@nginx.com>
parents:
289
diff
changeset
|
263 <note> |
43c84d19bf92
Added a note about the NGINX environment variable.
Ruslan Ermilov <ru@nginx.com>
parents:
289
diff
changeset
|
264 Переменная окружения NGINX используется для внутренних целей nginx |
43c84d19bf92
Added a note about the NGINX environment variable.
Ruslan Ermilov <ru@nginx.com>
parents:
289
diff
changeset
|
265 и не должна устанавливаться непосредственно самим пользователем. |
43c84d19bf92
Added a note about the NGINX environment variable.
Ruslan Ermilov <ru@nginx.com>
parents:
289
diff
changeset
|
266 </note> |
43c84d19bf92
Added a note about the NGINX environment variable.
Ruslan Ermilov <ru@nginx.com>
parents:
289
diff
changeset
|
267 </para> |
43c84d19bf92
Added a note about the NGINX environment variable.
Ruslan Ermilov <ru@nginx.com>
parents:
289
diff
changeset
|
268 |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
269 </directive> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
270 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
271 |
556
345012910707
Documented the "events" and "use" directives.
Ruslan Ermilov <ru@nginx.com>
parents:
554
diff
changeset
|
272 <directive name="events"> |
345012910707
Documented the "events" and "use" directives.
Ruslan Ermilov <ru@nginx.com>
parents:
554
diff
changeset
|
273 <syntax block="yes"/> |
345012910707
Documented the "events" and "use" directives.
Ruslan Ermilov <ru@nginx.com>
parents:
554
diff
changeset
|
274 <default/> |
345012910707
Documented the "events" and "use" directives.
Ruslan Ermilov <ru@nginx.com>
parents:
554
diff
changeset
|
275 <context>main</context> |
345012910707
Documented the "events" and "use" directives.
Ruslan Ermilov <ru@nginx.com>
parents:
554
diff
changeset
|
276 |
345012910707
Documented the "events" and "use" directives.
Ruslan Ermilov <ru@nginx.com>
parents:
554
diff
changeset
|
277 <para> |
345012910707
Documented the "events" and "use" directives.
Ruslan Ermilov <ru@nginx.com>
parents:
554
diff
changeset
|
278 Предоставляет контекст конфигурационного файла, в котором указываются |
345012910707
Documented the "events" and "use" directives.
Ruslan Ermilov <ru@nginx.com>
parents:
554
diff
changeset
|
279 директивы, влияющие на обработку соединений. |
345012910707
Documented the "events" and "use" directives.
Ruslan Ermilov <ru@nginx.com>
parents:
554
diff
changeset
|
280 </para> |
345012910707
Documented the "events" and "use" directives.
Ruslan Ermilov <ru@nginx.com>
parents:
554
diff
changeset
|
281 |
345012910707
Documented the "events" and "use" directives.
Ruslan Ermilov <ru@nginx.com>
parents:
554
diff
changeset
|
282 </directive> |
345012910707
Documented the "events" and "use" directives.
Ruslan Ermilov <ru@nginx.com>
parents:
554
diff
changeset
|
283 |
345012910707
Documented the "events" and "use" directives.
Ruslan Ermilov <ru@nginx.com>
parents:
554
diff
changeset
|
284 |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
285 <directive name="include"> |
271 | 286 <syntax><value>файл</value> | <value>маска</value></syntax> |
99
1d315ef37215
The case <default/> is now language-agnostic.
Ruslan Ermilov <ru@nginx.com>
parents:
79
diff
changeset
|
287 <default/> |
104
3ae68fe2e938
A nicer look for the directive's synopsis section, including i18n
Ruslan Ermilov <ru@nginx.com>
parents:
102
diff
changeset
|
288 <context/> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
289 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
290 <para> |
271 | 291 Включает в конфигурацию другой <value>файл</value> или файлы, |
255
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
292 подходящие под заданную маску. |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
293 Включаемые файлы должны содержать синтаксически верные директивы и блоки. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
294 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
295 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
296 <para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
297 Пример использования: |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
298 <example> |
255
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
299 include mime.types; |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
300 include vhosts/*.conf; |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
301 </example> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
302 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
303 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
304 </directive> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
305 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
306 |
571
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
307 <directive name="lock_file"> |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
308 <syntax><value>файл</value></syntax> |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
309 <default>logs/nginx.lock</default> |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
310 <context>main</context> |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
311 |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
312 <para> |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
313 Для реализации <link id="accept_mutex"/> и сериализации доступа к |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
314 разделяемой памяти nginx использует механизм блокировок. |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
315 На большинстве систем блокировки реализованы с помощью атомарных |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
316 операций, и эта директива игнорируется. |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
317 Для остальных систем применяется механизм файлов блокировок. |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
318 Эта директива задаёт префикс имён файлов блокировок. |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
319 </para> |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
320 |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
321 </directive> |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
322 |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
323 |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
324 <directive name="master_process"> |
271 | 325 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
102
c76a257f3fd4
The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents:
99
diff
changeset
|
326 <default>on</default> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
327 <context>main</context> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
328 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
329 <para> |
255
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
330 Определяет, будут ли запускаться рабочие процессы. |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
331 Эта директива предназначена для разработчиков nginx. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
332 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
333 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
334 </directive> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
335 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
336 |
571
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
337 <directive name="multi_accept"> |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
338 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
339 <default>off</default> |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
340 <context>events</context> |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
341 |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
342 <para> |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
343 Если <literal>multi_accept</literal> выключен, рабочий процесс |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
344 за один раз будет принимать только одно новое соединение. |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
345 В противном случае рабочий процесс |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
346 за один раз будет принимать сразу все новые соединения. |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
347 <note> |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
348 Директива игнорируется в случае использования метода обработки соединений |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
349 <link doc="events.xml" id="kqueue"/>, т.к. данный метод сам сообщает |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
350 число новых соединений, ожидающих приёма. |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
351 </note> |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
352 </para> |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
353 |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
354 </directive> |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
355 |
71d775bef043
Documented accept_mutex, accept_mutex_delay, multi_accept, and lock_file.
Ruslan Ermilov <ru@nginx.com>
parents:
556
diff
changeset
|
356 |
289
df261b1ce71f
Documented the --with-pcre-jit configuration parameter
Ruslan Ermilov <ru@nginx.com>
parents:
271
diff
changeset
|
357 <directive name="pcre_jit"> |
df261b1ce71f
Documented the --with-pcre-jit configuration parameter
Ruslan Ermilov <ru@nginx.com>
parents:
271
diff
changeset
|
358 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
df261b1ce71f
Documented the --with-pcre-jit configuration parameter
Ruslan Ermilov <ru@nginx.com>
parents:
271
diff
changeset
|
359 <default>off</default> |
df261b1ce71f
Documented the --with-pcre-jit configuration parameter
Ruslan Ermilov <ru@nginx.com>
parents:
271
diff
changeset
|
360 <context>main</context> |
df261b1ce71f
Documented the --with-pcre-jit configuration parameter
Ruslan Ermilov <ru@nginx.com>
parents:
271
diff
changeset
|
361 <appeared-in>1.1.12</appeared-in> |
df261b1ce71f
Documented the --with-pcre-jit configuration parameter
Ruslan Ermilov <ru@nginx.com>
parents:
271
diff
changeset
|
362 |
df261b1ce71f
Documented the --with-pcre-jit configuration parameter
Ruslan Ermilov <ru@nginx.com>
parents:
271
diff
changeset
|
363 <para> |
df261b1ce71f
Documented the --with-pcre-jit configuration parameter
Ruslan Ermilov <ru@nginx.com>
parents:
271
diff
changeset
|
364 Разрешает или запрещает использование JIT-компиляции (PCRE JIT) |
df261b1ce71f
Documented the --with-pcre-jit configuration parameter
Ruslan Ermilov <ru@nginx.com>
parents:
271
diff
changeset
|
365 для регулярных выражений, известных на момент парсинга конфигурации. |
df261b1ce71f
Documented the --with-pcre-jit configuration parameter
Ruslan Ermilov <ru@nginx.com>
parents:
271
diff
changeset
|
366 </para> |
df261b1ce71f
Documented the --with-pcre-jit configuration parameter
Ruslan Ermilov <ru@nginx.com>
parents:
271
diff
changeset
|
367 |
df261b1ce71f
Documented the --with-pcre-jit configuration parameter
Ruslan Ermilov <ru@nginx.com>
parents:
271
diff
changeset
|
368 <para> |
df261b1ce71f
Documented the --with-pcre-jit configuration parameter
Ruslan Ermilov <ru@nginx.com>
parents:
271
diff
changeset
|
369 Использование PCRE JIT способно существенно ускорить обработку |
df261b1ce71f
Documented the --with-pcre-jit configuration parameter
Ruslan Ermilov <ru@nginx.com>
parents:
271
diff
changeset
|
370 регулярных выражений. |
df261b1ce71f
Documented the --with-pcre-jit configuration parameter
Ruslan Ermilov <ru@nginx.com>
parents:
271
diff
changeset
|
371 <note> |
df261b1ce71f
Documented the --with-pcre-jit configuration parameter
Ruslan Ermilov <ru@nginx.com>
parents:
271
diff
changeset
|
372 Для работы JIT необходима библиотека PCRE версии 8.20 или выше, |
df261b1ce71f
Documented the --with-pcre-jit configuration parameter
Ruslan Ermilov <ru@nginx.com>
parents:
271
diff
changeset
|
373 собранная с параметром конфигурации <literal>--enable-jit</literal>. |
df261b1ce71f
Documented the --with-pcre-jit configuration parameter
Ruslan Ermilov <ru@nginx.com>
parents:
271
diff
changeset
|
374 При сборке библиотеки PCRE вместе с nginx (<literal>--with-pcre=</literal>), |
df261b1ce71f
Documented the --with-pcre-jit configuration parameter
Ruslan Ermilov <ru@nginx.com>
parents:
271
diff
changeset
|
375 для включения поддержки JIT необходимо использовать параметр |
df261b1ce71f
Documented the --with-pcre-jit configuration parameter
Ruslan Ermilov <ru@nginx.com>
parents:
271
diff
changeset
|
376 конфигурации <literal>--with-pcre-jit</literal>. |
df261b1ce71f
Documented the --with-pcre-jit configuration parameter
Ruslan Ermilov <ru@nginx.com>
parents:
271
diff
changeset
|
377 </note> |
df261b1ce71f
Documented the --with-pcre-jit configuration parameter
Ruslan Ermilov <ru@nginx.com>
parents:
271
diff
changeset
|
378 </para> |
df261b1ce71f
Documented the --with-pcre-jit configuration parameter
Ruslan Ermilov <ru@nginx.com>
parents:
271
diff
changeset
|
379 |
df261b1ce71f
Documented the --with-pcre-jit configuration parameter
Ruslan Ermilov <ru@nginx.com>
parents:
271
diff
changeset
|
380 </directive> |
df261b1ce71f
Documented the --with-pcre-jit configuration parameter
Ruslan Ermilov <ru@nginx.com>
parents:
271
diff
changeset
|
381 |
df261b1ce71f
Documented the --with-pcre-jit configuration parameter
Ruslan Ermilov <ru@nginx.com>
parents:
271
diff
changeset
|
382 |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
383 <directive name="pid"> |
271 | 384 <syntax><value>файл</value></syntax> |
102
c76a257f3fd4
The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents:
99
diff
changeset
|
385 <default>nginx.pid</default> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
386 <context>main</context> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
387 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
388 <para> |
271 | 389 Задаёт <value>файл</value>, в котором будет храниться номер (PID) основного процесса. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
390 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
391 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
392 </directive> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
393 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
394 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
395 <directive name="ssl_engine"> |
271 | 396 <syntax><value>устройство</value></syntax> |
99
1d315ef37215
The case <default/> is now language-agnostic.
Ruslan Ermilov <ru@nginx.com>
parents:
79
diff
changeset
|
397 <default/> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
398 <context>main</context> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
399 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
400 <para> |
255
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
401 Задаёт название аппаратного SSL-акселератора. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
402 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
403 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
404 </directive> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
405 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
406 |
1436 | 407 <directive name="thread_pool"> |
408 <syntax> | |
409 <value>имя</value> | |
410 <literal>threads</literal>=<value>число</value> | |
411 [<literal>max_queue</literal>=<value>число</value>]</syntax> | |
412 <default>default threads=32 max_queue=65536</default> | |
413 <context>main</context> | |
414 <appeared-in>1.7.11</appeared-in> | |
415 | |
416 <para> | |
417 Задаёт именованные пулы потоков, | |
418 используемые для многопоточной обработки операций чтения и отправки файлов | |
419 <link doc="http/ngx_http_core_module.xml" id="aio">без блокирования</link> | |
420 рабочего процесса. | |
421 </para> | |
422 | |
423 <para> | |
424 Параметр <literal>threads</literal> | |
425 задаёт число потоков в пуле. | |
426 </para> | |
427 | |
428 <para> | |
429 Если все потоки из пула заняты выполнением заданий, | |
430 новое задание будет ожидать своего выполнения в очереди. | |
431 Параметр <literal>max_queue</literal> ограничивает число заданий, | |
432 ожидающих своего выполнения в очереди. | |
433 По умолчанию в очереди может находиться до 65536 заданий. | |
434 При переполнении очереди задание завершается с ошибкой. | |
435 </para> | |
436 | |
437 </directive> | |
438 | |
439 | |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
440 <directive name="timer_resolution"> |
271 | 441 <syntax><value>интервал</value></syntax> |
99
1d315ef37215
The case <default/> is now language-agnostic.
Ruslan Ermilov <ru@nginx.com>
parents:
79
diff
changeset
|
442 <default/> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
443 <context>main</context> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
444 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
445 <para> |
255
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
446 Уменьшает разрешение таймеров времени в рабочих процессах, за счёт |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
447 чего уменьшается число системных вызовов <c-func>gettimeofday</c-func>. |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
448 По умолчанию <c-func>gettimeofday</c-func> вызывается после каждой |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
449 операции получения событий из ядра. |
957
6d9d4bb571a9
Text review of the ngx_core_module.
Egor Nikitin <yegor.nikitin@gmail.com>
parents:
935
diff
changeset
|
450 При уменьшении разрешения <c-func>gettimeofday</c-func> вызывается только |
271 | 451 один раз за указанный <value>интервал</value>. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
452 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
453 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
454 <para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
455 Пример использования: |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
456 <example> |
255
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
457 timer_resolution 100ms; |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
458 </example> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
459 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
460 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
461 <para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
462 Внутренняя реализация интервала зависит от используемого метода: |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
463 <list type="bullet"> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
464 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
465 <listitem> |
271 | 466 фильтр <c-def>EVFILT_TIMER</c-def> при использовании <literal>kqueue</literal>; |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
467 </listitem> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
468 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
469 <listitem> |
271 | 470 <c-func>timer_create</c-func> при использовании <literal>eventport</literal>; |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
471 </listitem> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
472 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
473 <listitem> |
255
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
474 и <c-func>setitimer</c-func> во всех остальных случаях. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
475 </listitem> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
476 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
477 </list> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
478 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
479 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
480 </directive> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
481 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
482 |
556
345012910707
Documented the "events" and "use" directives.
Ruslan Ermilov <ru@nginx.com>
parents:
554
diff
changeset
|
483 <directive name="use"> |
345012910707
Documented the "events" and "use" directives.
Ruslan Ermilov <ru@nginx.com>
parents:
554
diff
changeset
|
484 <syntax><value>метод</value></syntax> |
345012910707
Documented the "events" and "use" directives.
Ruslan Ermilov <ru@nginx.com>
parents:
554
diff
changeset
|
485 <default/> |
345012910707
Documented the "events" and "use" directives.
Ruslan Ermilov <ru@nginx.com>
parents:
554
diff
changeset
|
486 <context>events</context> |
345012910707
Documented the "events" and "use" directives.
Ruslan Ermilov <ru@nginx.com>
parents:
554
diff
changeset
|
487 |
345012910707
Documented the "events" and "use" directives.
Ruslan Ermilov <ru@nginx.com>
parents:
554
diff
changeset
|
488 <para> |
345012910707
Documented the "events" and "use" directives.
Ruslan Ermilov <ru@nginx.com>
parents:
554
diff
changeset
|
489 Задаёт <value>метод</value>, используемый для |
345012910707
Documented the "events" and "use" directives.
Ruslan Ermilov <ru@nginx.com>
parents:
554
diff
changeset
|
490 <link doc="events.xml">обработки соединений</link>. |
345012910707
Documented the "events" and "use" directives.
Ruslan Ermilov <ru@nginx.com>
parents:
554
diff
changeset
|
491 Обычно нет необходимости задавать его явно, поскольку по умолчанию |
345012910707
Documented the "events" and "use" directives.
Ruslan Ermilov <ru@nginx.com>
parents:
554
diff
changeset
|
492 nginx сам выбирает наиболее эффективный метод. |
345012910707
Documented the "events" and "use" directives.
Ruslan Ermilov <ru@nginx.com>
parents:
554
diff
changeset
|
493 </para> |
345012910707
Documented the "events" and "use" directives.
Ruslan Ermilov <ru@nginx.com>
parents:
554
diff
changeset
|
494 |
345012910707
Documented the "events" and "use" directives.
Ruslan Ermilov <ru@nginx.com>
parents:
554
diff
changeset
|
495 </directive> |
345012910707
Documented the "events" and "use" directives.
Ruslan Ermilov <ru@nginx.com>
parents:
554
diff
changeset
|
496 |
345012910707
Documented the "events" and "use" directives.
Ruslan Ermilov <ru@nginx.com>
parents:
554
diff
changeset
|
497 |
255
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
498 <directive name="user"> |
271 | 499 <syntax><value>пользователь</value> [<value>группа</value>]</syntax> |
255
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
500 <default>nobody nobody</default> |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
501 <context>main</context> |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
502 |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
503 <para> |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
504 Задаёт пользователя и группу, с правами которого будут работать |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
505 рабочие процессы. |
271 | 506 Если <value>группа</value> не задана, то используется группа, имя |
255
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
507 которой совпадает с именем пользователя. |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
508 </para> |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
509 |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
510 </directive> |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
511 |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
512 |
749
2abb92a19101
Documented 'worker_aio_requests' directive.
Vladimir Homutov <vl@nginx.com>
parents:
742
diff
changeset
|
513 <directive name="worker_aio_requests"> |
2abb92a19101
Documented 'worker_aio_requests' directive.
Vladimir Homutov <vl@nginx.com>
parents:
742
diff
changeset
|
514 <syntax><value>число</value></syntax> |
2abb92a19101
Documented 'worker_aio_requests' directive.
Vladimir Homutov <vl@nginx.com>
parents:
742
diff
changeset
|
515 <default>32</default> |
2abb92a19101
Documented 'worker_aio_requests' directive.
Vladimir Homutov <vl@nginx.com>
parents:
742
diff
changeset
|
516 <context>events</context> |
750
6a1b1ba62cab
Documented history of "worker_aio_requests" directive.
Vladimir Homutov <vl@nginx.com>
parents:
749
diff
changeset
|
517 <appeared-in>1.1.4</appeared-in> |
6a1b1ba62cab
Documented history of "worker_aio_requests" directive.
Vladimir Homutov <vl@nginx.com>
parents:
749
diff
changeset
|
518 <appeared-in>1.0.7</appeared-in> |
749
2abb92a19101
Documented 'worker_aio_requests' directive.
Vladimir Homutov <vl@nginx.com>
parents:
742
diff
changeset
|
519 |
2abb92a19101
Documented 'worker_aio_requests' directive.
Vladimir Homutov <vl@nginx.com>
parents:
742
diff
changeset
|
520 <para> |
2abb92a19101
Documented 'worker_aio_requests' directive.
Vladimir Homutov <vl@nginx.com>
parents:
742
diff
changeset
|
521 При использовании <link doc="http/ngx_http_core_module.xml" id="aio"/> |
2abb92a19101
Documented 'worker_aio_requests' directive.
Vladimir Homutov <vl@nginx.com>
parents:
742
diff
changeset
|
522 совместно с методом обработки соединений |
2abb92a19101
Documented 'worker_aio_requests' directive.
Vladimir Homutov <vl@nginx.com>
parents:
742
diff
changeset
|
523 <link doc="../docs/events.xml" id="epoll"/>, |
2abb92a19101
Documented 'worker_aio_requests' directive.
Vladimir Homutov <vl@nginx.com>
parents:
742
diff
changeset
|
524 задаёт максимальное <value>число</value> ожидающих обработки операций |
2abb92a19101
Documented 'worker_aio_requests' directive.
Vladimir Homutov <vl@nginx.com>
parents:
742
diff
changeset
|
525 асинхронного ввода-вывода для одного рабочего процесса. |
2abb92a19101
Documented 'worker_aio_requests' directive.
Vladimir Homutov <vl@nginx.com>
parents:
742
diff
changeset
|
526 </para> |
2abb92a19101
Documented 'worker_aio_requests' directive.
Vladimir Homutov <vl@nginx.com>
parents:
742
diff
changeset
|
527 |
2abb92a19101
Documented 'worker_aio_requests' directive.
Vladimir Homutov <vl@nginx.com>
parents:
742
diff
changeset
|
528 </directive> |
2abb92a19101
Documented 'worker_aio_requests' directive.
Vladimir Homutov <vl@nginx.com>
parents:
742
diff
changeset
|
529 |
2abb92a19101
Documented 'worker_aio_requests' directive.
Vladimir Homutov <vl@nginx.com>
parents:
742
diff
changeset
|
530 |
545
e97b46d1842d
Documented the "worker_connections" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
523
diff
changeset
|
531 <directive name="worker_connections"> |
e97b46d1842d
Documented the "worker_connections" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
523
diff
changeset
|
532 <syntax><value>число</value></syntax> |
e97b46d1842d
Documented the "worker_connections" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
523
diff
changeset
|
533 <default>512</default> |
e97b46d1842d
Documented the "worker_connections" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
523
diff
changeset
|
534 <context>events</context> |
e97b46d1842d
Documented the "worker_connections" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
523
diff
changeset
|
535 |
e97b46d1842d
Documented the "worker_connections" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
523
diff
changeset
|
536 <para> |
957
6d9d4bb571a9
Text review of the ngx_core_module.
Egor Nikitin <yegor.nikitin@gmail.com>
parents:
935
diff
changeset
|
537 Задаёт максимальное число соединений, которые одновременно |
545
e97b46d1842d
Documented the "worker_connections" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
523
diff
changeset
|
538 может открыть рабочий процесс. |
e97b46d1842d
Documented the "worker_connections" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
523
diff
changeset
|
539 </para> |
e97b46d1842d
Documented the "worker_connections" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
523
diff
changeset
|
540 |
e97b46d1842d
Documented the "worker_connections" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
523
diff
changeset
|
541 <para> |
e97b46d1842d
Documented the "worker_connections" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
523
diff
changeset
|
542 Следует иметь в виду, что в это число входят все соединения |
e97b46d1842d
Documented the "worker_connections" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
523
diff
changeset
|
543 (в том числе, например, соединения с проксируемыми серверами), |
e97b46d1842d
Documented the "worker_connections" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
523
diff
changeset
|
544 а не только соединения с клиентами. |
e97b46d1842d
Documented the "worker_connections" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
523
diff
changeset
|
545 Стоит также учитывать, что фактическое число одновременных |
e97b46d1842d
Documented the "worker_connections" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
523
diff
changeset
|
546 соединений не может превышать действующего ограничения на |
e97b46d1842d
Documented the "worker_connections" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
523
diff
changeset
|
547 максимальное число открытых файлов, |
659
77a3314c74a7
Avoid the uses of second person.
Ruslan Ermilov <ru@nginx.com>
parents:
614
diff
changeset
|
548 которое можно изменить с помощью <link id="worker_rlimit_nofile"/>. |
545
e97b46d1842d
Documented the "worker_connections" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
523
diff
changeset
|
549 </para> |
e97b46d1842d
Documented the "worker_connections" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
523
diff
changeset
|
550 |
e97b46d1842d
Documented the "worker_connections" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
523
diff
changeset
|
551 </directive> |
e97b46d1842d
Documented the "worker_connections" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
523
diff
changeset
|
552 |
e97b46d1842d
Documented the "worker_connections" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
523
diff
changeset
|
553 |
469
8275e169f77b
Documented the "worker_cpu_affinity" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
455
diff
changeset
|
554 <directive name="worker_cpu_affinity"> |
8275e169f77b
Documented the "worker_cpu_affinity" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
455
diff
changeset
|
555 <syntax><value>маска_CPU</value> ...</syntax> |
8275e169f77b
Documented the "worker_cpu_affinity" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
455
diff
changeset
|
556 <default/> |
8275e169f77b
Documented the "worker_cpu_affinity" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
455
diff
changeset
|
557 <context>main</context> |
8275e169f77b
Documented the "worker_cpu_affinity" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
455
diff
changeset
|
558 |
8275e169f77b
Documented the "worker_cpu_affinity" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
455
diff
changeset
|
559 <para> |
8275e169f77b
Documented the "worker_cpu_affinity" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
455
diff
changeset
|
560 Привязывает рабочие процессы к группам процессоров. |
8275e169f77b
Documented the "worker_cpu_affinity" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
455
diff
changeset
|
561 Каждая группа процессоров задаётся битовой маской |
8275e169f77b
Documented the "worker_cpu_affinity" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
455
diff
changeset
|
562 разрешённых к использованию процессоров. |
8275e169f77b
Documented the "worker_cpu_affinity" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
455
diff
changeset
|
563 Для каждого рабочего процесса должна быть задана отдельная группа. |
8275e169f77b
Documented the "worker_cpu_affinity" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
455
diff
changeset
|
564 По умолчанию рабочие процессы не привязаны к конкретным процессорам. |
8275e169f77b
Documented the "worker_cpu_affinity" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
455
diff
changeset
|
565 </para> |
8275e169f77b
Documented the "worker_cpu_affinity" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
455
diff
changeset
|
566 |
8275e169f77b
Documented the "worker_cpu_affinity" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
455
diff
changeset
|
567 <para> |
8275e169f77b
Documented the "worker_cpu_affinity" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
455
diff
changeset
|
568 Например, |
8275e169f77b
Documented the "worker_cpu_affinity" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
455
diff
changeset
|
569 <example> |
8275e169f77b
Documented the "worker_cpu_affinity" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
455
diff
changeset
|
570 worker_processes 4; |
8275e169f77b
Documented the "worker_cpu_affinity" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
455
diff
changeset
|
571 worker_cpu_affinity 0001 0010 0100 1000; |
8275e169f77b
Documented the "worker_cpu_affinity" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
455
diff
changeset
|
572 </example> |
8275e169f77b
Documented the "worker_cpu_affinity" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
455
diff
changeset
|
573 привязывает каждый рабочий процесс к отдельному процессору, тогда как |
8275e169f77b
Documented the "worker_cpu_affinity" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
455
diff
changeset
|
574 <example> |
8275e169f77b
Documented the "worker_cpu_affinity" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
455
diff
changeset
|
575 worker_processes 2; |
8275e169f77b
Documented the "worker_cpu_affinity" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
455
diff
changeset
|
576 worker_cpu_affinity 0101 1010; |
8275e169f77b
Documented the "worker_cpu_affinity" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
455
diff
changeset
|
577 </example> |
8275e169f77b
Documented the "worker_cpu_affinity" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
455
diff
changeset
|
578 привязывает первый рабочий процесс к CPU0/CPU2, |
8275e169f77b
Documented the "worker_cpu_affinity" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
455
diff
changeset
|
579 а второй — к CPU1/CPU3. |
8275e169f77b
Documented the "worker_cpu_affinity" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
455
diff
changeset
|
580 Второй пример пригоден для hyper-threading. |
8275e169f77b
Documented the "worker_cpu_affinity" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
455
diff
changeset
|
581 </para> |
8275e169f77b
Documented the "worker_cpu_affinity" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
455
diff
changeset
|
582 |
8275e169f77b
Documented the "worker_cpu_affinity" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
455
diff
changeset
|
583 <para> |
8275e169f77b
Documented the "worker_cpu_affinity" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
455
diff
changeset
|
584 <note> |
8275e169f77b
Documented the "worker_cpu_affinity" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
455
diff
changeset
|
585 Директива доступна только на FreeBSD и Linux. |
8275e169f77b
Documented the "worker_cpu_affinity" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
455
diff
changeset
|
586 </note> |
8275e169f77b
Documented the "worker_cpu_affinity" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
455
diff
changeset
|
587 </para> |
8275e169f77b
Documented the "worker_cpu_affinity" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
455
diff
changeset
|
588 |
8275e169f77b
Documented the "worker_cpu_affinity" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
455
diff
changeset
|
589 </directive> |
8275e169f77b
Documented the "worker_cpu_affinity" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
455
diff
changeset
|
590 |
8275e169f77b
Documented the "worker_cpu_affinity" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
455
diff
changeset
|
591 |
255
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
592 <directive name="worker_priority"> |
271 | 593 <syntax><value>число</value></syntax> |
255
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
594 <default>0</default> |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
595 <context>main</context> |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
596 |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
597 <para> |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
598 Задаёт приоритет планирования рабочих процессов подобно тому, |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
599 как это делается командой <command>nice</command>: отрицательное |
271 | 600 <value>число</value> |
255
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
601 означает более высокий приоритет. |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
602 Диапазон возможных значений, как правило, варьируется от -20 до 20. |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
603 </para> |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
604 |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
605 <para> |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
606 Пример использования: |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
607 <example> |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
608 worker_priority -10; |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
609 </example> |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
610 </para> |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
611 |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
612 </directive> |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
613 |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
614 |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
615 <directive name="worker_processes"> |
740
46d70031bea9
Documented the recently added "auto" parameter of the
Andrey Belov <defan@nginx.com>
parents:
659
diff
changeset
|
616 <syntax><value>число</value> | <literal>auto</literal></syntax> |
255
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
617 <default>1</default> |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
618 <context>main</context> |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
619 |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
620 <para> |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
621 Задаёт число рабочих процессов. |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
622 </para> |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
623 |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
624 <para> |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
625 Оптимальное значение зависит от множества факторов, включая |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
626 (но не ограничиваясь ими) число процессорных ядер, число |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
627 жёстких дисков с данными и картину нагрузок. |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
628 Если затрудняетесь в выборе правильного значения, можно начать |
740
46d70031bea9
Documented the recently added "auto" parameter of the
Andrey Belov <defan@nginx.com>
parents:
659
diff
changeset
|
629 с установки его равным числу процессорных ядер |
46d70031bea9
Documented the recently added "auto" parameter of the
Andrey Belov <defan@nginx.com>
parents:
659
diff
changeset
|
630 (значение “<literal>auto</literal>” пытается определить его |
46d70031bea9
Documented the recently added "auto" parameter of the
Andrey Belov <defan@nginx.com>
parents:
659
diff
changeset
|
631 автоматически). |
742
3a2e35f4c279
Documented that "worker_processes auto" appeared in version 1.3.8.
Ruslan Ermilov <ru@nginx.com>
parents:
740
diff
changeset
|
632 <note> |
3a2e35f4c279
Documented that "worker_processes auto" appeared in version 1.3.8.
Ruslan Ermilov <ru@nginx.com>
parents:
740
diff
changeset
|
633 Параметр <literal>auto</literal> поддерживается только начиная |
764
f8434fdd3cd9
The "auto" parameter of the ""worker_processes" directive
Ruslan Ermilov <ru@nginx.com>
parents:
750
diff
changeset
|
634 с версий 1.3.8 и 1.2.5. |
742
3a2e35f4c279
Documented that "worker_processes auto" appeared in version 1.3.8.
Ruslan Ermilov <ru@nginx.com>
parents:
740
diff
changeset
|
635 </note> |
255
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
636 </para> |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
637 |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
638 </directive> |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
639 |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
640 |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
641 <directive name="worker_rlimit_core"> |
271 | 642 <syntax><value>размер</value></syntax> |
99
1d315ef37215
The case <default/> is now language-agnostic.
Ruslan Ermilov <ru@nginx.com>
parents:
79
diff
changeset
|
643 <default/> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
644 <context>main</context> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
645 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
646 <para> |
255
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
647 Изменяет ограничение на наибольший размер core-файла |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
648 (<c-def>RLIMIT_CORE</c-def>) для рабочих процессов. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
649 Используется для увеличения ограничения без перезапуска основного процесса. |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
650 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
651 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
652 </directive> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
653 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
654 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
655 <directive name="worker_rlimit_nofile"> |
271 | 656 <syntax><value>число</value></syntax> |
99
1d315ef37215
The case <default/> is now language-agnostic.
Ruslan Ermilov <ru@nginx.com>
parents:
79
diff
changeset
|
657 <default/> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
658 <context>main</context> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
659 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
660 <para> |
255
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
661 Изменяет ограничение на максимальное число открытых файлов |
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
662 (<c-def>RLIMIT_NOFILE</c-def>) для рабочих процессов. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
663 Используется для увеличения ограничения без перезапуска основного процесса. |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
664 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
665 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
666 </directive> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
667 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
668 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
669 <directive name="working_directory"> |
271 | 670 <syntax><value>каталог</value></syntax> |
99
1d315ef37215
The case <default/> is now language-agnostic.
Ruslan Ermilov <ru@nginx.com>
parents:
79
diff
changeset
|
671 <default/> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
672 <context>main</context> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
673 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
674 <para> |
255
e2718c7f9040
Sync ngx_core_module documentation with English version.
Ruslan Ermilov <ru@nginx.com>
parents:
222
diff
changeset
|
675 Задаёт каталог, который будет текущим для рабочего процесса. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
676 Основное применение — запись core-файла, в этом случае рабочий |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
677 процесс должен иметь права на запись в этот каталог. |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
678 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
679 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
680 </directive> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
681 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
682 </section> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
683 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
684 </module> |