·您当前的位置:主页 > 技术教程 > Wowza教程 >

[wowza]wowza安装CentOS上教程

时间:2016-01-04 09:30酷播
如何在CentOS上搭建Wowza服务器

如何在CentOS上搭建Wowza服务器
1. 下载RPM
   http://www.wowzamedia.com/store.html

2. 安装配置Java

3. 运行下载的WowzaMediaServer RPM
   sudo chmod +x WowzaMediaServer-4.0.rpm.bin
   sudo ./WowzaMediaServer-4.0.rpm.bin

4. 启动Wowza服务器并输入序列号
   ./usr/local/WowzaMediaServer/bin/startup.sh
   (若没有找到WowzaMediaServer文件夹,说明没有安装成功,可以先尝试卸载
    rpm -e WowzaMediaServer,
    然后重新执行上面的第三部安装)


5. 以服务方式启动
   /sbin/service WowzaMediaServer start

6. 安装实例程序来测试
   ./usr/local/WowzaMediaServer/examples/install...
   按照以下例子来测试live stream
   http://wiki.medialooks.com/RTMP_streaming_with_Wowza_Media_Server

7. 应用实例
   可以下载极酷阳光播放器来实测,下载地址 http://www.cuplayer.com/CuSunPlayer/download.html

   示例代码参考如下:

  1. <script type="text/javascript" src="/player/images/swfobject.js"></script> 
  2. <div class="video" id="CuPlayer"> <b> <img src="/player/images/loading.gif" /> 网页视频播放器加载中,请稍后...</b> </div> 
  3. <script type="text/javascript"> 
  4. var so = new SWFObject("/player/player.swf","ply","980","460","9","#000000"); 
  5. so.addParam("allowfullscreen","true"); 
  6. so.addParam("allowscriptaccess","always"); 
  7. so.addParam("wmode","opaque"); 
  8. so.addParam("quality","high"); 
  9. so.addParam("salign","lt"); 
  10. <!-- HTML代码参数/Begin --> 
  11. so.addVariable("JcScpServer","rtmp://www.cuplauyer.com/vod"); //rtmp流媒体服务器地址 
  12. so.addVariable("JcScpVideoPath","mp4:test.mp4"); //文件地址 
  13. so.addVariable("JcScpImg","/player/Images/flashChangfa2.jpg"); 
  14. so.addVariable("JcScpFile","/player/CuSunV2Set.asp"); 
  15. <!-- HTML代码参数/End --> 
  16. so.write("CuPlayer"); 
  17. </script> 

如何在CentOS上搭建Wowza服务器

热门文章推荐

请稍候...