视频流服务器部署
上传安装包
一、解压 nginx-rtmp-module
cd /home/ngaq/soware/package
unzip nginx-rtmp-module.zip -d /home/ngaq/soware
二、nginx 安装
https://blog.csdn.net/weixin_39076342/article/details/103606096
1、导入 nginx 压缩包
2、解压缩 nginx 压缩包
tar -zxvf nginx-1.16.1.tar.gz
3、进入 nginx-1.16.1 文件夹
4、编译安装 nginx
./con"gure --pre"x=/home/ngaq/soware/nginx -with-h$p-ssl-module
--add-module=/home/ngaq/soware/nginx-rtmp-module
make
make install
5、修改 nginx 配置文件
user root;
Server listen 20000
loca)on /hls {
types {
applica)on/vnd.apple.mpegusr m3u8;
video/mp2t ts;
}
root html;
add_header Cache-Control no-cache;