File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ stream {
7272
7373| \- | 说明|
7474| ------:| ------|
75- | ** 语法** | ** listen** `address: port [ ssl] [ udp] [ proxy_protocol] [ backlog=number] [ rcvbuf=size] [ sndbuf=size] [ bind] [ ipv6only=on| off] [ reuseport] [ so_keepalive=on| off| [ keepidle] :[ keepintvl] :[ keepcnt]] `;|
75+ | ** 语法** | ** listen** ` address:port [ssl] [udp] [proxy_protocol] [backlog=number] [rcvbuf=size] [sndbuf=size] [bind] [ipv6only=on\ |off] [reuseport] [so_keepalive=on\ |off\ |[keepidle]:[keepintvl]:[keepcnt]] ` ;|
7676| ** 默认** | ——|
7777| ** 上下文** | server|
7878
@@ -138,7 +138,7 @@ listen unix:/var/run/nginx.sock;
138138
139139 此参数配置监听套接字的 ** TCP keepalive** 行为。如果省略此参数,将启用操作系统的套接字设置。如果将其设置为值 ` on ` ,则为套接字打开 ` SO_KEEPALIVE ` 选项。如果将其值设置为 ` off ` ,则为套接字关闭 ` SO_KEEPALIVE ` 选项。某些操作系统支持使用 ` TCP_KEEPIDLE ` 、` TCP_KEEPINTVL ` 和 ` TCP_KEEPCNT ` 套接字选项在每个套接字的基础上设置 TCP keepalive 参数。在此类系统上(目前有 Linux 2.4+、NetBSD 5+ 和 FreeBSD 9.0-STABLE),可以使用 ` keepidle ` 、` keepintvl ` 和` keepcnt ` 参数配置。可省略一两个参数,在该情况下,相应套接字选项的系统默认设置将生效。例如,
140140
141- ```` nginx
141+ ``` nginx
142142 so_keepalive=30m::10
143143 ```
144144
@@ -183,7 +183,7 @@ listen unix:/var/run/nginx.sock;
183183
184184|\-|说明|
185185|------:|------|
186- |**语法**|**resolver** `address ... [valid=time] [ipv6=on|off]`;|
186+ |**语法**|**resolver** `address ... [valid=time] [ipv6=on\ |off]`;|
187187|**默认**|——|
188188|**上下文**|stream、server|
189189|**提示**|该指令在 1.11.3 版本中出现|
@@ -361,4 +361,4 @@ resolver 127.0.0.1 [::1]:5353 valid=30s;
361361 通用日志(Common Log)格式的本地时间
362362
363363## 原文档
364- [http://nginx.org/en/docs/stream/ngx_stream_core_module.html](http://nginx.org/en/docs/stream/ngx_stream_core_module.html)
364+ [ http://nginx.org/en/docs/stream/ngx_stream_core_module.html ] ( http://nginx.org/en/docs/stream/ngx_stream_core_module.html )
You can’t perform that action at this time.
0 commit comments