ngx_image_thumb-master模块安装

./configure --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_spdy_module --with-http_gzip_static_module --with-ipv6 --with-http_sub_module --add-module=./ngx_image_thumb-master
make && make install

location ~ /uploadfiles/.*\.(jpg|jpeg|gif|png|bmp)
        {
                        image on;
                        image_output off;
                        image_jpeg_quality 90;
                        expires  30d;
        }

/usr/local/nginx/sbin/nginx -t

/etc/init.d/nginx restart //roload只能重新加载文件,不会加载新模块


你可能感兴趣的:(ngx_image_thumb-master模块安装)