Mercurial > hg > nginx-site
annotate xml/ru/docs/njs/install.xml @ 2286:b9144a131eff
Corrected example in njs Command-line interface.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Tue, 27 Nov 2018 16:35:51 +0300 |
parents | 41ccd87cdb89 |
children | 2aad23d07d96 |
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" |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
12 rev="1"> |
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 |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
35 </section> |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
36 |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
37 |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
38 <section id="install_sources" name="Установка из исходных файлов"> |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
39 |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
40 <para> |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
41 <link url="http://hg.nginx.org/njs">Репозиторий</link> |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
42 с исходным кодом njs можно клонировать следующей командой: |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
43 (необходим клиент <link url="https://www.mercurial-scm.org">Mercurial</link>): |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
44 <example> |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
45 hg clone http://hg.nginx.org/njs |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
46 </example> |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
47 Затем модули необходимо собрать с помощью |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
48 конфигурационного параметра <literal>--add-module</literal>: |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
49 <example> |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
50 ./configure --add-module=<value>path-to-njs</value>/nginx |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
51 </example> |
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 <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
|
54 <example> |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
55 ./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
|
56 </example> |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
57 </para> |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
58 |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
59 <para> |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
60 Чтобы собрать только <link doc="cli.xml">утилиту</link> командной строки njs |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
61 необходимо запустить |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
62 команды <literal>./configure</literal> и <literal>make njs</literal> |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
63 из корневого каталога. |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
64 Утилита доступна как <literal>./build/njs</literal>. |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
65 </para> |
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 </section> |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
68 |
41ccd87cdb89
Added njs installation procedure in Russian.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
diff
changeset
|
69 </article> |