RMTP方案:Nginx+ffmpeg/obs+vlc/h5 |
服务器安装 |
1.依赖 |
sudo apt-get update |
sudo apt-get install libpcre3 libpcre3-dev |
sudo apt-get install openssl libssl-dev |
2.安装Nginx |
下载nginx-1.17.9.tar.gz+nginx-http-flv-module.zip放到同级目录解压 |
https://nginx.org/download/ |
https://github.com/winshining/nginx-http-flv-module |
cd nginx-1.17.9/ |
./configure --prefix=/usr/local/nginx --add-module=../nginx-http-flv-module --with-http_ssl_module |
make |
sudo make install |
安装目录:/usr/local/nginx/sbin/nginx |
3.修改配置文件/usr/local/nginx/conf/nginx.conf |