摘要:
1.缓存配置语法 1)proxy_cache配置语法 Syntax: proxy_cache zone | off; Default: proxy_cache off; Context: http, server, location 2)缓存路径 Syntax: proxy_cache_path p 阅读全文
posted @ 2020-07-09 17:28
wanghongwei-dev
阅读(263)
评论(0)
推荐(0)
摘要:
1.反向代理及负载均衡 Nginx实现负载均衡用到了proxy_pass代理模块核心配置,将客户端请求代理转发至一组upstream虚拟服务池。 1)upstream配置语法 Syntax: upstream name { ... } Default: - Context: http #upstre 阅读全文
posted @ 2020-07-09 16:58
wanghongwei-dev
阅读(350)
评论(0)
推荐(0)
摘要:
1.静态参数配置 1)文件读取高效sendfile Syntax: sendfile on | off; Default: sendfile off; Context: http, server, location, if in location 2)提高网络传输效率nopush Syntax: t 阅读全文
posted @ 2020-07-09 15:58
wanghongwei-dev
阅读(224)
评论(0)
推荐(0)
摘要:
1.Nginx状态监控 http_stub_status_module记录Nginx客户端基本访问状态信息 location /mystatus { stub_status on; access_log off; } #Nginx_status概述 Active connections:2 //Ng 阅读全文
posted @ 2020-07-09 13:17
wanghongwei-dev
阅读(211)
评论(0)
推荐(0)

浙公网安备 33010602011771号