(1)sendfile用来设置服务器是否使用sendfile()传输文件
sendfile用来设置服务器是否使用sendfile()传输文件,该属性可以大大提高nginx对静态资源的性能
| 语法 | sendfile on / off ; |
|---|---|
| 默认值 | sendfile off ; |
| 位置 | http , server location |
(2)keepalive_timeout 用来设置长连接超时时间
为什么使用keeoalive_timeout 
| 语法 | keepalive_timeout time ; |
|---|---|
| 默认值 | keeoalive_timeout 75 ; |
| 位置 | http , server , location |
(3)keepalive_requests用来设置一个keep-alive的链接次数
| 语法 | keepalive_requests number ; |
|---|---|
| 默认值 | keepalive_requests 100 ; |
| 位置 | http , server ,location |

