nginx 在window编译 HTTP-FLV直播模块

现在网上使用的直播流有rtmp

要准备的文件有

 zlib-1.2.11.tar 

 pcre-8.43.tar  

openssl-1.1.1d.tar

安装 msys2-x86_64-20190524

安装 ActicePerl-5.24.2.2403-MSWin32-x64-403863.exe

安装 Mercurial-5.1.2-x64

安装 sed-4.2.1-setup

    因为找的麻烦,我就整个在百度云上

   链接:https://pan.baidu.com/s/18mmcwJ54faPsVRgbxOYULQ 
   提取码:xa1l 
 

1.下载文件 HTTP-FLV 模块的项目源码和nginx 模块的项目

 

    https://github.com/winshining/nginx-http-flv-module

    nginx 下载目录

    http://nginx.org/en/download.html

 

2.使用使用MSYS工具进行编译

 

进入目录

cd /e/nginx/tip/nginx-3939483cd1b5

进入编译

auto/configure --with-cc=cl --with-debug --prefix= --conf-path=conf/nginx.conf --pid-path=logs/nginx.pid --http-log-path=logs/access.log --error-log-path=logs/error.log --sbin-path=nginx.exe --http-client-body-temp-path=temp/client_body_temp --http-proxy-temp-path=temp/proxy_temp --http-fastcgi-temp-path=temp/fastcgi_temp --http-scgi-temp-path=temp/scgi_temp --http-uwsgi-temp-path=temp/uwsgi_temp --with-cc-opt=-DFD_SETSIZE=1024 --with-pcre=objs/lib/pcre-8.43 --with-zlib=objs/lib/zlib-1.2.11 --with-openssl=objs/lib/openssl-1.1.1c --with-openssl-opt=no-asm --with-http_ssl_module --add-module=/path/to/nginx-http-flv-module

  红色的要写上对应的路径

 

 

使用vs2015编译

nmake -f objs/Makefile

 

 

 

 

编译完成后就会生成exe 文件

 

编译后的文件,可以直接配置使用

https://download.csdn.net/download/qq_35978045/12320098

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 9
    评论
评论 9
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值