文档介绍:gaoshan8008的专栏
nginx搭建flv、mp4流媒体服务器 nginx升级
分类: 服务器 Nginx 2013-09-04 16:43 39人阅读评论(0) 收藏举报
Nginx流媒体服务器
一。前期准备,安装zlib pcre mp4模块
 #安装zlib
 tar xzvf zlib-
  cd zlib-
 ./configure
  make && makeinstall
#安装pcre
  tar zxvf pcre-
  cd pcre-
 ./configure--prefix=/usr/local/pcre
  make && makeinstall
#添加mp4支持模块
    wget -/download/nginx_mod_h264_streaming-
    tar -zxvf nginx_mod_h264_streaming-
二。修改mp4模块,要不make报错
    /usr/local/src/nginx_mod_h264_streaming-  158-161行
三。编译nginx
./configure --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-
http_ssl_module --with-zlib=../zlib-  --add-module=../nginx_mod_h264_streaming- --with-
http_flv_module
make
四。替换老版本nginx
    mv /usr/local/nginx/sbin/nginx
    cp /usr/local/src/nginx- /usr/local/nginx/sbin/
五。查看nginx颁布
    /usr/local/nginx/sbin -v  
   /usr/local/nginx/sbin -V
六。安装yamdi 支持拖拽
   #下载yadmi
   wget /projects/yamdi/files/yamdi/-
   tar xzvf yamdi-
   cd yamdi-
1
make && make install
   使用方法:yamdi -i -o
七。测试播放
   
    ?type=http&file=
    /