nginx及nginx-rtmp-module安装


系统说明:

centos6.2_64

一、版本

nginx-1.4.4

nginx-rtmp-module-1.0.6

https://github.com/shenhailuanma/nginx-rtmp-module.git


二、安装

./configure --add-module=/root/nginx-rtmp-module-1.0.6

很正常的,出现问题:

./configure: error: the HTTP rewrite module requires the PCRE library.

安装pcre-devel与openssl-devel解决问题

在centos下:
 
yum -y install pcre-devel openssl openssl-devel

在ubuntu下:

sudo apt-get update 
sudo apt-get install libpcre3 libpcre3-dev 

你可能还需要安装
sudo apt-get install openssl libssl-dev

然后,make,make install就安装完成了。


三、配置文件

#uer  nobody;
worker_processes  1;
error_log  logs/error.log debug;
#error_log  logs/error.log  notice;
#error_log  logs/error.log  info;
#pid        logs/nginx.pid;
events {
    worker_connections  1024;
}
rtmp {
    server {
        listen 1935;
        chunk_size 4096;
        application myapp {
            live on;
        }
    }
}



四、运行

/usr/local/nginx/sbin/nginx -c /root/rtmp.conf


OK,利用nginx-rtmp-module,简单实现了一个rtmp媒体服务器。






转载于:https://my.oschina.net/zhangxu0512/blog/178802

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值