为OpenResty增加nginx_upload_module模块

1、下载

http://www.grid.net.ru/nginx/download/nginx_upload_module-2.2.0.tar.gz

http://pan.baidu.com/s/1lebGM

还需要一个补丁

地址:http://pan.baidu.com/s/1qWI1zWS

2、安装

yum install -y patch

tar zxvf nginx_upload_module-2.2.
//再将补丁文件darvromaniak.txt,复制到nginx_upload_module解压的目录
cd nginx_upload_module-2.2.
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.
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./objs
cp nginx /usr/local/openresty/nginx/sbin/
service nginx restart
/usr/local/openresty/nginx/sbin/nginx -V
上一篇:一、winForm-DataGridView操作——控件绑定事件的两种方法


下一篇:CSS层叠样式表--使用