进阶学习 - 常见nginx中间架构
一、静态资源web服务
二、代理服务
三、负载均衡掉调度器SLB(七层)
四、动态缓存
静态资源web服务
1、静态资源类型
2、静态资源服务器场景-CDN
3、配置语法
3.1 文件读取
syntax: sendfile on|off;
default: sendfile off;
context: http,server,location,if in location
3.2 tcp_nopush
syntax: tcp_nopush on|off;
default: tcp_nopush off;
context: http,server,location
作用:sendfile开启的情况下,提高网络包的传输效率。