nginx设置如何设置缓存

配置文件proxy_cache cache_one
其中这个cache_one的缓存在哪
如果本机设置的画,要如何设置,如何新建这个缓存,如何查找缓存位置
linux下提示
nginx: [emerg] "proxy_cache" zone "cache_one" is unknown in /etc/nginx/nginx.conf:105

阅读 15k
1 个回答

http下面
proxy_cache_path 路径 keys_zone=名字:最大占用空间
例如
proxy_cache_path /data/nginx/cache keys_zone=cache_one:100m

推荐问题