Nginx 搭建 RTMP 流媒体直播服务器

为了在远处查看屋里的情况,又把以前用过的Nginx – rtmp服务器搭起来了,大致记录下:

编译Nginx(带有RTMP模块):

Nginx使用1.6.3,Nginx-rtmp使用master最新版本,系统为CentOS 7

准备Nginx源代码:

wget

Nginx-rtmp:

git clone

配置:

在CentOS下:

在Gentoo下:

编译:

make -j9

安装:

make install

Nginx 配置:

加入rtmp block

rtmp{

}

Iptables配置:

Selinux配置:

启动Nginx:

Systemd中:

systemctl start nginx

systemctl enable nginx

非Systemd:

/etc/init.d/nginx start

Leave a Reply

Your email address will not be published. Required fields are marked *