【关键词】version 1021004 instead of 1020001
报错示例:
nginx: [emerg] module “/usr/lib64/nginx/modules/ngx_http_headers_more_filter_module.so” version 1021004 instead of 1020001 in /etc/nginx/nginx.conf:9
场景:
- nginx配置文件使用
load_module /path/to/modules/ngx_http_headers_more_filter_module.so;
动态导入模块
解决方法:
- 备份原nginx的配置文件、原安装模块等
- 卸载重装nginx。