1、下载
http://www.grid.net.ru/nginx/download/nginx_upload_module-2.2.0.tar.gz
或
还需要一个补丁
地址:http://pan.baidu.com/s/1qWI1zWS
2、安装
yum install -y patch tar zxvf nginx_upload_module-2.2.0 //再将补丁文件darvromaniak.txt,复制到nginx_upload_module解压的目录 cd nginx_upload_module-2.2.0 patch ngx_http_upload_module.c davromaniak.txt cd /usr/local/software/ngx_openresty-1.5.12.1 ./configure --prefix=/usr/local/openresty/ --with-http_stub_status_module --add-module=/usr/local/nginx_upload_module-2.2.0 make //注意不需要执行make install,执行make install是覆盖安装 mv /usr/local/openresty/nginx/sbin/nginx /usr/local/openresty/nginx/sbin/nginx.bak cd /usr/local/software/ngx_openresty-1.5.12.1/build/nginx-1.5.12/objs cp nginx /usr/local/openresty/nginx/sbin/ service nginx restart /usr/local/openresty/nginx/sbin/nginx -V