ITPub博客

首页 > 应用开发 > IT综合 > nginx1.6 安装上传模块 nginx_upload_module

nginx1.6 安装上传模块 nginx_upload_module

原创 IT综合 作者:破棉袄 时间:2015-03-25 16:30:15 0 删除 编辑
1.下载nginx_upload_module模块:http://www.grid.net.ru/nginx/download/nginx_upload_module-2.2.0.tar.gz

2.下载upload_progress_module进度模块: http://soft.beauty-soft.net/lib/nginx_uploadprogress_module-0.9.0.tar.gz

3.下载davromaniak.txt补丁:http://pan.baidu.com/s/1qACoQ  (nginx1.3.9以上版本ngx_http_read_request_body_t已经删除了to_write成员,所有1.3.9以下版本会编译失败,如果使用1.3.9以上版本需要打此补丁,本次安装选用的是1.6.2版本)

4.为upload_module打补丁:

                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  

5.编译安装:(
ngx_http_concat_module为淘宝的合并模块,--with-http_mp4_module --with-http_flv_module为nginx自带的视频模块)

             
 ./configure   --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_mp4_module --with-http_flv_module --add-module=/usr/local/nginx-module/ngx_http_concat_module --add-module=/usr/local/nginx-module/nginx_upload_module-2.2.0 --add-module=/usr/local/nginx-module/masterzen-nginx-upload-progress-module-a788dea


ps:如果pcre报错   --with-pcre=/root/pcre-8.31  ,如果还报 m4 找不到 则在pcre目录下建立m4空文件夹
     如果openssl报错 将openssl中的.h文件拷贝到/usr/include目录下。

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29754888/viewspace-1473351/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: JVM内存分配
请登录后发表评论 登录
全部评论

注册时间:2014-07-16

  • 博文量
    180
  • 访问量
    1159064