user www www;
worker_processes ; error_log logs/error.log debug; #pid logs/nginx.pid; events {
worker_connections ;
} rtmp {
server {
listen ; application live {
live on;
record off;
} application live2 {
live on;
record off;
} # application hls { #这一块的注释,不然的话.m3u8流是没办法播放的
# live on;
hls on;
hls_path /tmp/hls;
# hls_cleanup off;
# } }
} http {
include mime.types;
default_type application/octet-stream; log_format main '[$time_local][$remote_addr][$http_x_forwarded_for] $status "$request" "$http_referer" "$http_user_agent"'; access_log logs/access.log main; sendfile on;
keepalive_timeout ; server
{
listen ;
server_name localhost; location /rtmp/stat {
rtmp_stat all;
rtmp_stat_stylesheet rtmpstat.xsl;
} location /rtmpstat.xsl {
} location /rtmp/control {
rtmp_control all;
} location /hls{
types {
application/vnd.apple.mpegurl m3u8;
}
root /tmp;
add_header Cache-Control no-cache;
add_header Access-Control-Allow-Origin *;
} #控制rtmp模块
location /control {
rtmp_control all;
}
} }

参照网址:

rtmp与hls流媒体服务器搭建:ubuntu下Nginx搭建初探与rtmp-module的添加

https://my.oschina.net/joshuashaw/blog/516015

nginx-rtmp-module 指令详解

http://blog.csdn.net/aoshilang2249/article/details/51483814

最新文章

  1. Android 6.0权限管理
  2. 谢启鸿谈"如何学好高等代数"
  3. Javascript之对象的继承
  4. 《学习OpenCV》练习题第四章第七题abc
  5. java笔记 chapter1 java是什么,能干什么,有什么,特点,开发环境
  6. effective C#之 - 使用属性代替成员变量
  7. ssh远程登录报错REMOTE HOST IDENTIFICATION HAS CHANGED!解决方式及原因
  8. Controller 里面就只应该存放这些不能复用的代码(转)
  9. umask的作用
  10. Lua5.3 注册表 _G _ENV
  11. MySQL到MongoDB的数据同步方法!
  12. nodemon 热更新
  13. JavaScript生成二维码图片
  14. sysbench做测试
  15. Ubuntu 部署 nginx
  16. Educational Codeforces Round 55 (Rated for Div. 2) A/B/C/D
  17. 锤子科技 Smartisan M1L 咖啡金 真皮背面 高配版 5.7
  18. gentoo moc audacious
  19. Spring和SpringMVC的常用注解
  20. linux 常用命令(个人记录)

热门文章

  1. & jobs fg Ctrl+z bg
  2. PL/SQL显示行号和高亮当前行
  3. 解决HP服务器安装Centos7 x64无法识别硬盘
  4. ios app的真机调试与发布配置
  5. C#:反射
  6. 对于数据包的截取,使用linux中的netfilter钩子函数
  7. 局部内部类访问方法中的局部变量为什么加final
  8. 如何在linux下查看gpu信息
  9. reactjs入门到实战(一)---- hello world例子
  10. Form1是父,form2是子,2的出现(覆盖在1的上面)不耽误1的操作