解决办法
将配置文件的 http
的 proxy_cache_path
由500改为300
proxy_cache_path /usr/local/nginx/proxy_cache_path levels=1:2 keys_zone=cache_one: 300m inactive=1d max_size=10g;
proxy_temp_path /usr/local/nginx/proxy_temp_path;
测试
ubuntu@VM-0-13-ubuntu:/etc/nginx$ sudo nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
重启即可
sudo nginx -s reload