搭建nginx upload服务 nginx-1.6.2(高版本不支持)
http://running.iteye.com/blog/859621
将此文件夹内的文件拷贝到software/nginx_upload(如果没有请新建)下
执行 yum install -y zlib-devel pcre-devel openssl-devel
cd
cp darvromaniak.txt [nginx_upload_module所在目录]
patch ngx_http_upload_module.c davromaniak.txt
cd nginx-1.6.2
./configure --user=root \
--prefix=/home/risen/software/nginx_upload/nginx \
--with-http_stub_status_module \
--with-http_ssl_module \
--with-http_realip_module \
--add-module=/home/risen/software/nginx_upload/nginx_upload_module \
--add-module=/home/risen/software/nginx_upload/nginx-upload-progress-module-0.9.2 \
如果找不到openssl library 就增加(--with-openssl=/home/risen/software/nginx_upload/openssl-1.0.2/ )
vim objs/Makefile (修改objs/Makefile文件, 去掉其中的"-Werror")
make
make install
cd //
mkdir data
cd data
mkdir mp4
mkdir mp4_360P
mkdir picture
mkdir video_screenshols
替换nginx.conf 到 nginx/conf里
cd apache-tomcat-8.5.8
chmod -R 777 *
启动nginx ./home/risen/software/nginx_upload/nginx/sbin/nginx
http://running.iteye.com/blog/859621
将此文件夹内的文件拷贝到software/nginx_upload(如果没有请新建)下
执行 yum install -y zlib-devel pcre-devel openssl-devel
cd
cp darvromaniak.txt [nginx_upload_module所在目录]
patch ngx_http_upload_module.c davromaniak.txt
cd nginx-1.6.2
./configure --user=root \
--prefix=/home/risen/software/nginx_upload/nginx \
--with-http_stub_status_module \
--with-http_ssl_module \
--with-http_realip_module \
--add-module=/home/risen/software/nginx_upload/nginx_upload_module \
--add-module=/home/risen/software/nginx_upload/nginx-upload-progress-module-0.9.2 \
如果找不到openssl library 就增加(--with-openssl=/home/risen/software/nginx_upload/openssl-1.0.2/ )
vim objs/Makefile (修改objs/Makefile文件, 去掉其中的"-Werror")
make
make install
cd //
mkdir data
cd data
mkdir mp4
mkdir mp4_360P
mkdir picture
mkdir video_screenshols
替换nginx.conf 到 nginx/conf里
cd apache-tomcat-8.5.8
chmod -R 777 *
启动nginx ./home/risen/software/nginx_upload/nginx/sbin/nginx
启动tomcat ./home/risen/software/nginx_upload/apache-tomcat-8.5.8/bin/startup.sh
nginx和tomcat 附件 nginx-upload.zip
java war包 附件 upload.war