nginx rtmp 环境搭建
来源:互联网 发布:怎么通过网络赚钱 编辑:程序博客网 时间:2024/05/01 10:58
环境:cetos 6.5
安装包目录
nginx 包下载地址: http://nginx.org/en/download.html
nginx rtmp module 包下载地址: https://github.com/arut/nginx-rtmp-module
将两个安装包解压
进入nginx 解压后的目录
./configure --add-module=nginx rtmp module解压目录 ---prefix=安装目录
make && make install
即将nginx rtmp 插件安装完成
测试config (示例) nginx.conf
worker_processes 1;
events {
worker_connections 1024;
}
rtmp {
access_log logs/rtmp_access.log new;
server {
listen 1935;
chunk_size 4096;
timeout 10s;
ping 2m;
application live {
live on;
wait_key on;
drop_idle_publisher 10s;
hls on;
hls_fragment 5s;
hls_nested on;
hls_sync 100ms;
hls_playlist_length 30s;
hls_path /tmp/live;
}
}
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
server {
listen 80;
server_name localhost;
keepalive_timeout 65;
location / {
root html;
index index.html index.htm;
}
location /crossdomain.xml{
root html;
}
location ~ /live/([0-9|a-z]+)/([0-9|a-z|-]+)\.m3u8 {
root /tmp;
add_header Cache-Control max-age=5;
default_type application/x-mpegURL;
}
location ~ /live/([0-9|a-z]+)/([0-9|a-z|-]+)\.ts {
root /tmp;
add_header Cache-Control max-age=5;
default_type video/MP2T;
}
}
}
在nginx安装目录下执行
./sbin/nginx -c conf/nginx.conf
即nginx rtmp 插件启动
测试
- nginx rtmp 环境搭建
- nginx hls rtmp 环境搭建
- nginx rtmp 直播环境搭建
- 视频直播服务端环境搭建(Nginx+RTMP)
- nginx搭建rtmp服务器
- nginx搭建rtmp服务器
- nginx搭建rtmp服务器
- 用开源nginx-rtmp-module搭建flash直播环境
- 用开源nginx-rtmp-module搭建flash直播环境
- 用开源nginx-rtmp-module搭建flash直播环境
- 在Linux环境下搭建基于Nginx的rtmp服务器
- Ubuntu nginx-rtmp环境
- Nginx搭建rtmp流媒体服务器
- 使用Nginx搭建RTMP服务器
- nginx + rtmp 搭建流媒体服务器
- ubuntu 15.10 nginx rtmp 搭建
- Mac搭建nginx+rtmp服务器
- Mac搭建nginx+rtmp服务器
- UGUI学习(二)渲染模式和层级顺序
- ZYNQ 的三种GPIO :MIO EMIO AXI_GPIO 小节
- Mac 安装RoobotFramework
- 无线电波与微波的区别和应用
- 一阶段-secondwork-2-switch的运用
- nginx rtmp 环境搭建
- Win7运行命令的打开方法 Win7运行命令大全(45个)
- 计算机网络---应用层概述
- 一阶段-secondwork-4-输入求和
- PHP中VC6、VC9、TS、NTS版本的区别与用法详解
- 一阶段-EighteenthWork-1-字符流+缓冲流
- linux中S3C2440的物理地址映射到虚拟地址详解
- Python——XML解析
- The Solution to Leetcode 563 Binary Tree Tilt