【发布时间】:2020-11-25 16:38:18
【问题描述】:
我有 media server 在端口 1935 上运行。
我有一个子域:"streaming.foo.com"
我需要配置 Nginx 才能访问 rtmp://streaming.foo.com
我用这个博客尝试了 RTMP Nginx 插件:
https://www.nginx.com/blog/video-streaming-for-remote-learning-with-nginx/
并配置/etc/nginx/nginx.conf文件。
rtmp {
server {
listen 1935;
application live {
live on;
dash on;
dash_path /tmp/dash; // what is this config??
dash_fragment 15s;
}
}
}
但我从 nginx 收到此错误:
nginx[176987]: nginx: [emerg] bind() to 0.0.0.0:1935 failed (98: 地址已在使用中)
【问题讨论】: