RTMP的NGINX配置启动失败
RTMP的moudle已经安装好了,然后新建了一个虚拟主机。在vhost里修改了conf,然后重启nginx,报错Starting nginx... nginx: "rtmp" directive is not allowed直接写在nginx.conf里也是报错Starting nginx... nginx: "rtmp" directive is not allowed
是服务器做了HTTP服务,就不能做RTMP服务了?
rtmp的配置该写在哪里啊?
已经提示你了"rtmp" directive is not allowed,肯定是位置rtmp整个block放错位置了
rtmp整个block是和http的block是平行的
具体可以看rtmp模块提供的配置例子:https://github.com/arut/nginx-rtmp-module
页:
[1]