win7下编译nginx
1、安装cygwin
http://www.cygwin.com/
163的mirror,安装如下内容:
1. gcc: gcc、core、g++、gdb、make
2. pcre
3. openssl
4. zlib
5. crypt
6. iconv(1.xxx以上需要)
2、编译nginx源码
http://nginx.org/
下载源码
gzip -d, tar vxf
解压后
configure --prefix=/cygdrive/c/nginx
make
即可编译生成nginx.exe
3、运行nginx
2008/01/12 16:34:56 [emerg] 2496#0: the maximum number of files supported by select() is 64
,这表示FD_SETSIZE的值比nginx配置文件中worker_connections指令所指定的值小,那么有什么办法解决这个问题呢?
第一种解决方法:把ngx_select_module事件处理模块去掉,通过在执行configure时指定参数—without-select_module。
第二种解决方法:修改nginx的配置文件(c:/nginx/conf/nginx.conf),把这个文件第13行的1024改为64(worker_connections指令的值)。
第三种解决方法:在执行configure时指定额外的编译选项(--with-cc-opt=”-D FD_SETSIZE=2048”),这同样也可以解决上面的问题。
---------------
MongoDB GridFS 介绍 PPT 两则
http://www.oschina.net/question/12_28876
规范
http://www.mongodb.org/display/DOCS/GridFS+Specification
文档
http://www.mongodb.org/display/DOCS/GridFS
示例
http://blog.csdn.net/zhangzhaokun/article/details/6287309
http://www.open-open.com/lib/view/open1330171884015.html
1、编译时,报错:
src/core/ngx_times.c: In function ‘ngx_time_update’:
src/core/ngx_times.c:136: error: ‘timezone’ undeclared (first use in this function)
src/core/ngx_times.c:136: error: (Each undeclared identifier is reported only once
src/core/ngx_times.c:136: error: for each function it appears in.)
make[1]: *** [objs/src/core/ngx_times.o] Error 1
make: *** [build] Error 2
这是因为在nginx中,timezone是作为函数使用的。而在cgwin环境下,把timezone当成了个变量。
修改头文件os\unix\ngx_posix_config.h中timezone的定义:
#define timezonevar
改为:
extern long timezone __asm__ ("__timezone");
再编译即可。
cgywin timezone的问题,具体请参照(http://cygwin.com/ml/cygwin/2008-01/msg00449.html)
2、由于gcc编译时指定的选项-Werror导致的,将所有的警告视为错误。可以在Makefile中将它去掉。
分享到:
相关推荐
windows下编译nginx-http-flv-moudle,编译好的,下载开箱可用,作者亲测。用于直播推流,浏览器flvjs播放视频,支持无插件flash播放。
windows平台nginx编译nginx-http-flv-module,可直接运行,基于nginx-1.17.10编译
gridfs-nginx-plugingridfs-nginx-plugingridfs-nginx-plugingridfs-nginx-plugingridfs-nginx-plugingridfs-nginx-plugingridfs-nginx-plugingridfs-nginx-plugingridfs-nginx-plugingridfs-nginx-plugingridfs-...
Linux利用nginx-gridfs搭建部署,nginx-gridfs-0.8 可用
添加nginx-http-flv-module模块并重新编译后的nginx(windows版)
直播转流,http协议播放
在windows 7 64位 环境下使用nginx的nginx-http-flv-module搭建flv视频流播放所有的安装包,参考:https://blog.csdn.net/qq_33071429/article/details/102628008
已编译好的nginx-http-flv-molule(windows版) 基于: --> openssl-1.1.1g --> pcre-8.44 --> zlib-1.2.11 --> nginx-http-module-v1.2.10 --> nginx-1.21.6 ======================== 在网上查找半天都只有教程,...
nginx sticky是nginx的module,可以实现基于cookie的负载均衡。 下载后,在编译安装nginx时,用--add-module... ./configure --prefix=/usr/local/nginx-1.6.0 --add-module=../nginx-sticky-module-1.25 --without-...
nginx-gridfs-0.8.tar.gz
nginx带nginx-http-flv模块,包含所有rtmp功能,我自己在windows下编译的,直接可用,用的是最新版的1.19.4版本
Laravel开发-laravel-gridfs-storage 用于Laravel存储API的MongoDB GridFS集成
ubuntu18.04下交叉编译(aarch64-linux-gnu)nginx1.18.0源码 支持H265编码的rtmp推流和HTTP-FLV拉流 适合安防、直播等领域的音视频推拉流工作
资源说明: 1. 采用nginx最新版编译,包含最新的nginx-http-flv-module,以及基础...1. 将压缩包解压到D:\nginx-1.19.3目录下 2. 使用cmd命令打开DOS,并切换到D:\nginx-1.19.3 3. 使用nginxservice.exe install安装
1、最新版 nginx-http-flv-module(windows可执行程序,含nginx 1.19.3,http-flv-module:1.2.7) 2、内含说明文档,请下载查看。 3、请勿放置于中文路径下,否则无法启动
nginx-rtmp-win64;nginx-rtmp-win64 nginx-rtmp-win64 nginx-rtmp-win64 nginx-rtmp-win64 nginx-rtmp-win64nginx-rtmp-win64
1、最新版 nginx-http-flv-module(linux可执行程序,含nginx 1.19.3,http-flv-module:1.2.7) 2、内含说明文档,请下载查看。 3、请勿放置于中文路径下,否则无法启动 4、sbin/nginx -c conf/nginx.conf
windows版,2021年6月23日编译,已编译nginx-http-flv-module直播推流模块
基于nginx1.19.3版本,已编译好nginx-http-flv-module,开箱即用。鄙视那些收C币的。
采用官网下载的nginx 1.17.7、nginx-http-flv-module 1.2.7编译而成的64位nginx程序。