- 49
- 0
- 约6.29千字
- 约 6页
- 2021-04-13 发布于天津
- 举报
on;}rtmp
on;}rtmp { server { listen 1935;
windows 下搭建基于 nginx 的 rtmp 服务器
Windows 机器配置 :Windows7 旗舰版 64 位 Intel(R)
Core(TM)i5-2520 CPU @2.50GHz 2.50 GHz 内存: 4GB1. 下 载 nginx Gryphon 下载链接 : http://nginx-win.ecsds.eu/download/nginx Gryphon.zip
载完成后解压;将解压后的目录名 : nginx
Gryphon 改成 : nginx--Gryphon2. 下载服务器状态检 查程序 stat.xsl/arut/nginx-rtmp-module/ 将
nginx-rtmp-module-master.zip 解压后复制到目 录 :nginx--Gryphon 下,保证 stat.xls 的目录 为 :nginx--Gryphon\nginx-rtmp-module\stat.xsl3. 配置 文件 conf\nginx-win-rtmp.conf 内容如下 :#user nobody;# multiple workers works !worker_processes 2;#error_log
logs/error.log;#error_log logs/error.log notice;#error_log
logs/error.log info;#pidlogs/nginx.pid;events
logs/error.log info;#pid
logs/nginx.pid;events
{ worker_connections 8192; # max value 32768, nginx recycling connections+registry optimization = this.value * 20 = max concurrent connections currently tested with one worker # C1000K should be possible depending there is enough ram/cpu power # multi_accept
chunk_size
chunk_size 4000; application live { live
on;} }}http {#include/nginx/conf/naxsi_core.rules; includemime.types;default_type application/octet-stream; #log_format main$remote_addr:$remote_port - $remote_user [$time_local]$request #$status$body_bytes_sent $http_referer $http_user_agent $http_x_forwarded_for;#access_loglogs/access.log main;## loadbalancing PHP#upstream myLoadBalancer {#server :9001weight=1 fail_timeout=5;#server :9002weight=1 fail_timeout=5;#server :9003weight=1 fail_timeout=5;#server :9004weight=1 fail_timeout=5;#server :9005weight=1 fail_timeout=5;#server
on;
} }}http {
#include
/nginx/conf/naxsi_core.rules; include
mime.types;
default_type application/octet-stream; #log_format main
$remote_addr:$remote_port - $remote_user [$time_local]
$request #
$status
$body_bytes_sent $http_referer
$http_user_agent $http_x_forwarded_for;
#access_log
logs/access.log main;#
# loadbalancing PHP#
upstream myLoadBalancer {#
server :9001
weight=1 fail_timeout=5;#
server :9002
weight=1 fai
您可能关注的文档
最近下载
- 人教版九年级数学下册2026年春季学期教学工作计划与教学进度表 (最新教材).docx
- T_CACM 1649—2025(支气管扩张症中西医结合诊疗指南).pdf
- 第六届福建省综合气象业务职业技能竞赛【决赛】理论考试题库-上(单选题部分).docx VIP
- 标准图集-07MS101 市政给水管道工程及附属设施.pdf VIP
- 2024年国网四川省电力公司招聘考试真题.pdf VIP
- 【2026年春新教材】部编版小学二年级下册道德与法治全册教案(教学设计).pdf
- 数学思政课教学案例.docx VIP
- 2024-2025学年广东省东莞市东华高级中学、东华松山湖高级中学高一下学期学习效率检测(一)数学试卷(含答案).docx VIP
- (高清版)DB12∕T 1115-2021 泵站工程运行管理规程.pdf VIP
- DB3305_T276-2023_生态联勤警务站建设与管理规范_湖州市 .docx VIP
原创力文档

文档评论(0)