nginx 配置文件的计量单位

译自:
http://nginx.org/en/docs/syntax.html

计量大小的单位:

bytes, kilobytes(后缀为 k 或 K), megabytes(后缀为 m 或 M),
例如:“1024”, “8k”, “1m”.

时间单位:

ms  milliseconds 毫秒
s   seconds 
m   minutes
h   hours
d   days
w   weeks
M   months, 30 days
y   years, 365 days

Multiple units can be combined in a single value by specifying them in the order from the most to the least significant, and optionally separated by whitespace. For example, “1h 30m” specifies the same time as “90m” or “5400s”. A value without a suffix means seconds. It is recommended to always specify a suffix.

对于时间单位来说,可同时使用多个单位,比如 “1h 30”,它等同于 “90m” 或者 “5400s”。如果不指定单位,默认是 “秒”,建议指定时间单位。

Some of the time intervals can be specified only with a seconds resolution.

某些时间参数只能使用 “秒” 为单位。


版权信息
本文编译自 nginx.org 的部分,遵循其原来的 licence 声明: 2-clause BSD-like license

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • NAME dnsmasq - A lightweight DHCP and caching DNS server....
    ximitc阅读 2,949评论 0 0
  • Spring Cloud为开发人员提供了快速构建分布式系统中一些常见模式的工具(例如配置管理,服务发现,断路器,智...
    卡卡罗2017阅读 135,288评论 19 139
  • 在郭泰著的《创意就是财富》中有这么一句话:“创意是今后决胜企业成败的不二法门。” 所以成功的人生必将是有创意的人生...
    宁静致远hfm阅读 346评论 0 0