nginx (Openresty) image_filter 安装运行失败

我在 Ubuntu 20.04 (focal) 上使用 nginx 和 OpenResty,尝试使用 nginx image_filter.

我安装了 nginx 版本 1.20.2 (stable) 并安装了 ngx_http_image_filter_module(模块和调试模块都安装在 /etc/nginx/modules 中)。此外,apt-get ... -V 告诉我 "nginx-module-image-filter 已经是最新版本 (1.20.2-1~focal)"。

在 nginx.conf 中调用 load_module /etc/nginx/modules/ngx_http_image_filter_module.so; 时,我遇到以下错误: nginx: [emerg] module "/etc/nginx/modules/ngx_http_image_filter_module.so" version 1020002 instead of 1019009.

其他帖子暗示需要升级 nginx,但是从 1.20.2 到 1.20.2-1 如何升级?我在哪里获取此最新的小升级,并确保它与 OpenResty 兼容?还是有其他解决方案?

原文链接 https://stackoverflow.com/questions/70072719

点赞