Closed luoyexiaoran closed 10 months ago
nginx version: nginx/1.20.2 built by gcc 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) built with OpenSSL 1.0.2k-fips 26 Jan 2017 TLS SNI support enabled configure arguments: --prefix=/mnt/vortex/nginx --with-http_ssl_module --with-http_stub_status_module --with-file-aio --with-http_dav_module --with-pcre --with-stream --add-module=/mnt/vortex/nginx-1.20.2/module/nginx-http-flv-module
请确保使用的是自己编译的 Nginx 和并确保路径正确。
When you meet a bug, please open the issue including a title prefixed by '[bug]' and describe it as follows: (当你碰到一个 bug,请在提出问题时以 '[bug]' 为前缀写明标题,并且像下面的内容一样描述它): [bug]安装完成后,启动报unknown directive "rtmp"
Expected behavior (期望行为)
支持rtmp
Actual behavior (实际行为)
不认识rtmp
OS and Nginx version (操作系统和 Nginx 版本号)
Nginx : 1.20.2
Configuration file (配置文件)
rtmp { server { listen 1935; chunk_size 4096; application myapp{ live on; gop_cache on; } } }
Steps to reproduce the behavior (复现问题步骤)
./sbin/nginx -s reload
Error log if any (错误日志)
2023/11/17 17:17:44 [emerg] 17042#0: unknown directive "rtmp" in /mnt/vortex/nginx/conf/nginx.conf:44