nginx 在已安装的情况下 安装http_image_filter_module
Last updated
Was this helpful?
Last updated
Was this helpful?
nginx_http_image_filter_module
在nginx 0.7.54以后才出现的,用于对JPEG, GIF和PNG图片进行转换处理 这个模块默认不被编译,所以要在编译nginx源码的时候,加入相关配置信息
在配置之前先安装gd-devel ,HttpImageFilterModule模块需要依赖gd-devel的支持,可以使用yum或apt-get方便地安装,如果未安装回报“/configure: error: the HTTP image filter module requires the GD library.”错误
参考:
1.查看原有的nginx配置命令
2.进入之前下载的源码目录,没有了,重新下载,我的目前是nginx-1.17.5版本
3.进入目录后执行如下命令
4.备份原有目录下
5.将编译好的nginx复制到已安装nginx的sbin目录
6.查看nginx 安装模块
不需要make install ,在已有安装的情况下编译即可,其中 ***
是 安装nginx原始的配置请务必加上 可以参考