nginx1.6 安裝上傳模組 nginx_upload_module
1.下載nginx_upload_module模組:2.下載upload_progress_module進度模組: 3.下載davromaniak.txt補丁: (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目錄下。
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部落格 ” ,連結:http://blog.itpub.net/29754888/viewspace-1473351/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- CentOS下安裝Nginx並新增nginx_upload_moduleCentOSNginx
- 在Windows上安裝Node.js模組WindowsNode.js
- 如何上傳蘋果ipa安裝包?蘋果
- 【NinGoo】Redhat上安裝Perl DBD::mysql模組GoRedhatMySql
- 安裝Nexus並上傳jar包JAR
- PyMySQL模組安裝MySql
- php模組安裝PHP
- 安裝MySQLdb模組MySql
- 上傳模組開發總結
- Nginx的Upload上傳模組Nginx
- 在Windows和Linux上安裝paramiko模組薦WindowsLinux
- 騰訊cos安裝,上傳圖片實際使用
- xshell安裝上傳下載檔案命令
- php 安裝zip模組PHP
- Python模組安裝Python
- windows 安裝 Pillow 模組Windows
- nginx安裝echo模組Nginx
- perl cpan 模組安裝
- linux安裝rz和sz上傳下載命令Linux
- pip進行模組安裝
- pycharm安裝python模組PyCharmPython
- OpenStack安裝(四)-Neutron模組
- pip安裝模組失敗
- OpenStack安裝(三) Nova模組
- Greenplum安裝dblink模組
- 使用CPAN安裝Perl模組
- Alan`s blog — 檔案上傳模組
- strawberry perl安裝,環境變數及模組安裝變數
- Python安裝selenium模組Python
- Mac 編譯安裝 PHPRedis 模組Mac編譯PHPRedis
- python openssl模組如何安裝?Python
- python 安裝模組的方法Python
- 模組的釋出和安裝
- Paramiko模組安裝與使用
- windwos平臺安裝phpredis模組PHPRedis
- BO performance mangement模組安裝文件.ORM
- python-模組,包,安裝Python
- 【Python】Python安裝模組Python