nginx 的配置中的度量单位
nginx 中配置常用到两种类型的度量单位,分别是空间大小单位。比如多少kb,多少mb。另外一种是时间单位。
nginx 中的时间单位
| 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, “
http://nginx.org/en/docs/syntax.html1h 30m” specifies the same time as “90m” or “5400s”. A value without a suffix means seconds. It is recommended to always specify a suffix.
nginx 中的空间大小单位
- k 或者 K
- m 或者 M
- 如果不填写表示 bytes
Sizes can be specified in bytes, kilobytes (suffixes
http://nginx.org/en/docs/syntax.htmlkandK) or megabytes (suffixesmandM), for example, “1024”, “8k”, “1m”.