Table of Contents
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
Demo的部署
SRS的DEMO的部署,提供网页演示播放/推送RTMP到SRS,播放HLS,转码,视频会议等。
注意:强烈建议初学者不要动demo,只要看demo就好;建议学完Usage的每个单独的使用,然后再动demo。
假设服务器的IP是:192.168.1.170
第一步,设置客户端hosts,注意是客户端(需要将demo.srs.com这个域名/vhost解析到服务器)
# edit the folowing file:
# linux: /etc/hosts
# windows: C:\Windows\System32\drivers\etc\hosts
# where server ip is 192.168.1.170
192.168.1.170 demo.srs.com
第二步,获取SRS。详细参考GIT获取代码
git clone https://github.com/ossrs/srs
cd srs/trunk
或者使用git更新已有代码:
git pull
第三步,编译SRS。详细参考Build
bash scripts/build.sh
第三步,启动SRS的DEMO,启动ffmpeg/api-server/srs等。
bash scripts/run.sh
访问SRS的DEMO:http://demo.srs.com:8085
第四步,停止SRS的DEMO,停止ffmpeg/api-server/srs等。
bash scripts/stop.sh
备注:DEMO的所有链接都是可以点的,所有功能都是可用的。
备注:请将所有实例的IP地址192.168.1.170都换成部署的服务器IP地址。
备注:DEMO不依赖nginx,使用cherrypy做演示网站以及分发HLS,依赖FFMPEG需要演示转码。
Winlin 2014.3
Welcome to SRS wiki!
SRS 5.0 wiki
Please select your language:
SRS 4.0 wiki
Please select your language:
SRS 3.0 wiki
Please select your language:
SRS 2.0 wiki
Please select your language:
SRS 1.0 wiki
Please select your language:
