Nginx 动态模块 nginx-mod-http-image-filter 加载失败解决

早上修改nginx配置后,检查配置是否正常,抛出错误内容:

$ sudo nginx -t
nginx: [emerg] module "/usr/lib64/nginx/modules/ngx_http_image_filter_module.so" version 1016001 instead of 1020001 in /usr/share/nginx/modules/mod-http-image-filter.conf:1
nginx: configuration file /etc/nginx/nginx.conf test failed

解决方案:

sudo yum update nginx nginx-mod-http-image-filter
// 该命令会同步更新相关依赖的动态模块

更新成功后执行检查,一切正常

$ sudo nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
本作品采用《CC 协议》,转载必须注明作者和本文链接
Challenge Limits
讨论数量: 0
(= ̄ω ̄=)··· 暂无内容!

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!