view xml/cn/docs/syntax.xml @ 1582:8973c7b37854

Updated commercial docs. details: http://hg.nginx.com/nginx.org-se/rev/23bf3610377f branches: se changeset: 1814:23bf3610377f user: Yaroslav Zhuravlev <yar@nginx.com> description: Added purge parameters to proxy_cache_path and friends. diffstat: xml/en/docs/http/ngx_http_fastcgi_module.xml | 60 +++++++++++++++++++++++++++- xml/en/docs/http/ngx_http_proxy_module.xml | 60 +++++++++++++++++++++++++++- xml/en/docs/http/ngx_http_scgi_module.xml | 60 +++++++++++++++++++++++++++- xml/en/docs/http/ngx_http_uwsgi_module.xml | 60 +++++++++++++++++++++++++++- xml/ru/docs/http/ngx_http_fastcgi_module.xml | 60 +++++++++++++++++++++++++++- xml/ru/docs/http/ngx_http_proxy_module.xml | 60 +++++++++++++++++++++++++++- xml/ru/docs/http/ngx_http_scgi_module.xml | 60 +++++++++++++++++++++++++++- xml/ru/docs/http/ngx_http_uwsgi_module.xml | 60 +++++++++++++++++++++++++++- 8 files changed, 472 insertions(+), 8 deletions(-) diffs (truncated from 672 to 500 lines):
author Yaroslav Zhuravlev <yar@nginx.com>
date Wed, 30 Sep 2015 18:48:54 +0300
parents 9934338f83af
children
line wrap: on
line source

<!--
  Copyright (C) Igor Sysoev
  Copyright (C) Nginx, Inc.
  -->

<!DOCTYPE article SYSTEM "../../../dtd/article.dtd">

<article name="配置文件中的计量单位"
         link="/cn/docs/syntax.html"
         lang="cn"
         translator="cfsego"
         rev="2">

<section>

<para>
容量可以用千字节(<literal>k</literal>,<literal>K</literal>)和兆字节(<literal>m</literal>,<literal>M</literal>)来描述,比如“<literal>8k</literal>”,“<literal>1m</literal>”。
如果没有指定单位,容量以字节为单位。
</para>

<para>
时间可以用分钟、小时、天等来描述:
<table width="30%">
<tr><td width="20%">s</td><td>秒</td></tr>
<tr><td width="20%">m</td><td>分钟</td></tr>
<tr><td width="20%">h</td><td>小时</td></tr>
<tr><td width="20%">d</td><td>天</td></tr>
<tr><td width="20%">w</td><td>周</td></tr>
<tr><td width="20%">M</td><td>月,30天</td></tr>
<tr><td width="20%">y</td><td>年,365天</td></tr>
</table>
</para>

<para>
比如,“<literal>1h 30m</literal>”,“<literal>1y 6M</literal>”。
另外,在一些指令中,描述时间可以精确到毫秒精度(<literal>ms</literal>)。
如果没有指定单位,时间以秒为单位。
</para>

</section>

</article>