一、环境配置
Nginx : Tengine(2.1.1)/ Nginx(1.6.2)
二、安装步骤
1、下载/ngx_http_enhance_mp4_module
执行命令:
cd /data/wwwroot/server/nginx_module
git clone https://github.com/whatvn/ngx_http_enhance_mp4_module
cd ngx_http_enhance_mp4_module
2、添加mp4模块
dso_tool --add-module=/data/wwwroot/server/nginx_module/ngx_http_enhance_mp4_module
(dso_tool命令是Tengine的动态加载模块工具)
通过上面的命令添加完毕之后,会在tengine的安装目录下的module文件夹下生成ngx_http_enhance_mp4_module文件
3、编辑nginx的nginx.conf文件
在dso节点中增加如下配置
dso {
load ngx_http_enhance_mp4_module.so;
}
4、查看是否安装成功
使用nginx -V查看安装的模块,如果出现了这个图,则说明模块已经成功的安装,否则,请检查原因