编译配置nginx-rtmp-moule

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








猜你喜欢

转载自blog.csdn.net/zhaozhencn/article/details/51150537