美文网首页
nginx搭建rtmp服务器

nginx搭建rtmp服务器

作者: 山东菏泽朱志强 | 来源:发表于2019-02-15 13:46 被阅读1次

首先参考这篇文章 https://www.jianshu.com/p/155a50cee595 安装好 nginx



安装 ffmpeg
下载地址 https://ffmpeg.org/releases/ffmpeg-4.1.tar.bz2
解压到 /opt/ffmpeg

tar -jxvf ffmpeg-4.1.tar.bz2

安装 yasm

yum install nasm -y
cd ffmpeg-4.1
./configure
make
make install

修改文件/etc/ld.so.conf 中增加/usr/local/ffmpeg/lib.
使其生效:ldconfig

加入环境变量

vim /etc/profile
最后一行加入:
export FFMPEG_HOME=/usr/local/ffmpeg
export PATH=$FFMPEG_HOME/bin:$PATH

使环境变量生效:source /etc/profile



安装 OpenSSL

yum -y install openssl
yum install openssl-devel -y


相关文章

网友评论

      本文标题:nginx搭建rtmp服务器

      本文链接:https://www.haomeiwen.com/subject/gvmpeqtx.html