cd nginx-1.17.4 ./configure --prefix=/usr/local/nginx --add-module=/root/nginx-rtmp-module --with-http_ssl_module --with-cc-opt="-Wno-error" make sudo make install
配置
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
cd /usr/local/nginx/conf/ sudo vim nginx.conf
# 配置 rtmp server rtmp { server{ # 制定服务端口 listen 1935; chunk_size 4000; # 制定流应用 application live { live on; record off; allow play all; } } }