版本
- Nginx-1.9.1
编译与配置
1. cd /usr/local/tools/nginx/ # NGINX的解压目录
2. 使用 nginx -V 获得现有的nginx的编译配置信息
3. ./configure
<原有的NGINX的编译配置>
--with-http_mp4_module # 添加mp4模块
--with-http_flv_module # 添加flv模块,我先加上防止以后公司有需要--可选
4. make # 编译 不要make install
5. 备份原有的nginx
6. 复制 objs中的nginx到命令路径下
7. 配置nginx
location ~* /videos/.*