一下日志
2025/06/17 12:08:58 [warn] 1#1: the “listen … http2” directive is deprecated, use the “http2” directive instead in /usr/local/openresty/nginx/conf/conf.d/1p.insten.cn.conf:3nginx: [warn] the “listen … http2” directive is deprecated, use the “http2” directive instead in /usr/local/openresty/nginx/conf/conf.d/1p.insten.cn.conf:3
2025/06/17 12:08:58 [emerg] 1#1: “proxy_cache” zone “proxy_cache_panel” is unknown in /usr/local/openresty/nginx/conf/nginx.conf:50nginx: [emerg] “proxy_cache” zone “proxy_cache_panel” is unknown in /usr/local/openresty/nginx/conf/nginx.conf:50
2025/06/17 12:09:58 [warn] 1#1: the “listen … http2” directive is deprecated, use the “http2” directive instead in /usr/local/openresty/nginx/conf/conf.d/1p.insten.cn.conf:3nginx: [warn] the “listen … http2” directive is deprecated, use the “http2” directive instead in /usr/local/openresty/nginx/conf/conf.d/1p.insten.cn.conf:3
2025/06/17 12:09:58 [emerg] 1#1: “proxy_cache” zone “proxy_cache_panel” is unknown in /usr/local/openresty/nginx/conf/nginx.conf:50nginx: [emerg] “proxy_cache” zone “proxy_cache_panel” is unknown in /usr/local/openresty/nginx/conf/nginx.conf:50
跑下这个命令找缓存配置删掉。
grep -rl ‘proxy_cache’ /opt/1panel/www/sites//proxy/ .conf | xargs dirname
删除列出文件中的 proxy_cache proxy_cache_panel; 这一行
好了。太谢谢了