Mercurial > hg > nginx-site
annotate xml/ru/docs/njs/install.xml @ 2799:24b379907b0f
Added async and await to njs Examples.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Fri, 19 Nov 2021 08:19:57 +0000 |
parents | 33468af2eaf7 |
children |
rev | line source |
---|---|
2249
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
1 <?xml version="1.0"?> |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
2 |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
3 <!-- |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
4 Copyright (C) Nginx, Inc. |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
5 --> |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
6 |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
7 <!DOCTYPE article SYSTEM "../../../../dtd/article.dtd"> |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
8 |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
9 <article name="Загрузка и установка" |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
10 link="/ru/docs/njs/install.html" |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
11 lang="ru" |
2534
33468af2eaf7
Moved load_module from examples of js modules to Installation.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
2459
diff
changeset
|
12 rev="3"> |
2249
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
13 |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
14 <section id="install_package" name="Установка пакета Linux"> |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
15 |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
16 <para> |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
17 Для установки модулей njs на Linux могут быть использованы |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
18 <link doc="../../linux_packages.xml" id="dynmodules">пакеты</link>: |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
19 <list type="bullet"> |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
20 |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
21 <listitem> |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
22 <literal>nginx-module-njs</literal> — |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
23 <link doc="../ngx_core_module.xml" id="load_module">динамические</link> модули |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
24 njs |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
25 </listitem> |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
26 |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
27 <listitem> |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
28 <literal>nginx-module-njs-dbg</literal> — debug-символы для |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
29 пакета <literal>nginx-module-njs</literal> |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
30 </listitem> |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
31 |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
32 </list> |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
33 </para> |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
34 |
2534
33468af2eaf7
Moved load_module from examples of js modules to Installation.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
2459
diff
changeset
|
35 <para> |
33468af2eaf7
Moved load_module from examples of js modules to Installation.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
2459
diff
changeset
|
36 После установки пакетов необходимо загрузить динамические модули njs при помощи |
33468af2eaf7
Moved load_module from examples of js modules to Installation.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
2459
diff
changeset
|
37 директивы |
33468af2eaf7
Moved load_module from examples of js modules to Installation.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
2459
diff
changeset
|
38 <link doc="../ngx_core_module.xml" id="load_module"><literal>load_module</literal></link>: |
33468af2eaf7
Moved load_module from examples of js modules to Installation.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
2459
diff
changeset
|
39 <example> |
33468af2eaf7
Moved load_module from examples of js modules to Installation.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
2459
diff
changeset
|
40 load_module modules/ngx_http_js_module.so; |
33468af2eaf7
Moved load_module from examples of js modules to Installation.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
2459
diff
changeset
|
41 </example> |
33468af2eaf7
Moved load_module from examples of js modules to Installation.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
2459
diff
changeset
|
42 или |
33468af2eaf7
Moved load_module from examples of js modules to Installation.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
2459
diff
changeset
|
43 <example> |
33468af2eaf7
Moved load_module from examples of js modules to Installation.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
2459
diff
changeset
|
44 load_module modules/ngx_stream_js_module.so; |
33468af2eaf7
Moved load_module from examples of js modules to Installation.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
2459
diff
changeset
|
45 </example> |
33468af2eaf7
Moved load_module from examples of js modules to Installation.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
2459
diff
changeset
|
46 </para> |
33468af2eaf7
Moved load_module from examples of js modules to Installation.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
2459
diff
changeset
|
47 |
2249
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
48 </section> |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
49 |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
50 |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
51 <section id="install_sources" name="Установка из исходных файлов"> |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
52 |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
53 <para> |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
54 <link url="http://hg.nginx.org/njs">Репозиторий</link> |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
55 с исходным кодом njs можно клонировать следующей командой: |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
56 (необходим клиент <link url="https://www.mercurial-scm.org">Mercurial</link>): |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
57 <example> |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
58 hg clone http://hg.nginx.org/njs |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
59 </example> |
2459
2aad23d07d96
Clarified procedure for building njs modules.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
2249
diff
changeset
|
60 Затем модули необходимо собрать из |
2aad23d07d96
Clarified procedure for building njs modules.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
2249
diff
changeset
|
61 корневого каталога <link doc="../configure.xml">nginx</link> с помощью |
2249
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
62 конфигурационного параметра <literal>--add-module</literal>: |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
63 <example> |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
64 ./configure --add-module=<value>path-to-njs</value>/nginx |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
65 </example> |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
66 Модули также можно собрать как |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
67 <link doc="../ngx_core_module.xml" id="load_module">динамические</link>: |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
68 <example> |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
69 ./configure --add-dynamic-module=<value>path-to-njs</value>/nginx |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
70 </example> |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
71 </para> |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
72 |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
73 <para> |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
74 Чтобы собрать только <link doc="cli.xml">утилиту</link> командной строки njs |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
75 необходимо запустить |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
76 команды <literal>./configure</literal> и <literal>make njs</literal> |
2459
2aad23d07d96
Clarified procedure for building njs modules.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
2249
diff
changeset
|
77 из корневого каталога njs. |
2249
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
78 Утилита доступна как <literal>./build/njs</literal>. |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
79 </para> |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
80 |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
81 </section> |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
82 |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
83 </article> |