编译配置nginx-rtmp-moule

来源:互联网 发布:企业邮箱需要域名吗 编辑:程序博客网 时间:2024/05/23 20:40

1 下载nginx和nginx-rtmp-module



2 安装必要的库

 yum -y install pcre-devel openssl openssl-devel


3 进入nginx源代码文件:
./configure --add-module=/path/to/nginx-rtmp-module --with-debug
make
make install


4 进入默认配置位置:/usr/local/nginx/ 

修改./conf/nginx.conf, 新增如下内容:


rtmp {
    server {
        listen 1935;
        chunk_size 4000;

        application live {
        live on;
        allow publish 192.168.1.151;
        allow publish all;
        allow play all;
        }
     }
}


5 运行 ./sbin/nginx。   GO








0 0
原创粉丝点击