Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/nginx/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Nginx RTMP模块状态问题_Nginx_Module_Rtmp - Fatal编程技术网

Nginx RTMP模块状态问题

Nginx RTMP模块状态问题,nginx,module,rtmp,Nginx,Module,Rtmp,我在这里使用nginx rtmp模块:另外还有一个stats页面,当我正确添加它并转到文档中显示的url时,我只会得到一个空白页面。除了/stat之外,我是否有什么做错了,或者我是否还需要在usl中键入其他内容 以下是我的nginx conf的http部分,以了解更多信息: http { server { listen 80; location /stat { rtmp_stat all; rtmp_stat_stylesheet stat.x

我在这里使用nginx rtmp模块:另外还有一个stats页面,当我正确添加它并转到文档中显示的url时,我只会得到一个空白页面。除了/stat之外,我是否有什么做错了,或者我是否还需要在usl中键入其他内容

以下是我的nginx conf的http部分,以了解更多信息:

http {
server {
    listen 80;
    location /stat {

        rtmp_stat all;

        rtmp_stat_stylesheet stat.xsl;
    }

    location /stat.xsl {
        root /usr/local/ngnix/html;
    }
}
}

如果有人偶然发现了这篇老文章,我也有同样的问题。
解决办法是改变:

rtmp\u stat\u样式表stat.xsl
to
rtmp\u stat\u样式表/stat.xsl

这对我来说适用于版本nginx rtmp 1.1.4和nginx 1.4.6。

我认为添加
/
的原因是html的非标准根位置。如果没有在stat.xsl前面加上
/
,那么动态生成的stats页面将在
http:///stat/stat.xsl

如果有人偶然发现这篇旧文章,我也有同样的问题。
解决办法是改变:

rtmp\u stat\u样式表stat.xsl
to
rtmp\u stat\u样式表/stat.xsl

这对我来说适用于版本nginx rtmp 1.1.4和nginx 1.4.6。

我认为添加
/
的原因是html的非标准根位置。如果没有在stat.xsl前面加上
/
,那么动态生成的stats页面将在
http:///stat/stat.xsl

如果有人偶然发现这篇旧文章,我也有同样的问题。
解决办法是改变:

rtmp\u stat\u样式表stat.xsl
to
rtmp\u stat\u样式表/stat.xsl

这对我来说适用于版本nginx rtmp 1.1.4和nginx 1.4.6。

我认为添加
/
的原因是html的非标准根位置。如果没有在stat.xsl前面加上
/
,那么动态生成的stats页面将在
http:///stat/stat.xsl

如果有人偶然发现这篇旧文章,我也有同样的问题。
解决办法是改变:

rtmp\u stat\u样式表stat.xsl
to
rtmp\u stat\u样式表/stat.xsl

这对我来说适用于版本nginx rtmp 1.1.4和nginx 1.4.6。

我认为添加
/
的原因是html的非标准根位置。如果没有在stat.xsl前面加上
/
,那么动态生成的stats页面将在
http:///stat/stat.xsl

您需要将stat.xsl复制到位置“/usr/local/ngnix/html;”“

您需要将stat.xsl复制到位置“/usr/local/ngnix/html;”

您需要将stat.xsl复制到位置“/usr/local/ngnix/html;”“

您需要将stat.xsl复制到位置“/usr/local/ngnix/html;”