windows下搭建基于nginx的rtmp服务器.docxVIP

  • 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

文档评论(0)

1亿VIP精品文档

相关文档