search

Home  >  Q&A  >  body text

How to set up cache in nginx settings

Configuration file proxy_cache cache_one
Where is the cache of cache_one?
If the local machine is set to draw, how to set it, how to create this cache, how to find the cache location
Linux prompts
nginx : [emerg] "proxy_cache" zone "cache_one" is unknown in /etc/nginx/nginx.conf:105

phpcn_u1582phpcn_u15822777 days ago1701

reply all(1)I'll reply

  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-16 17:11:31

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

    reply
    0
  • Cancelreply