Windows编译Nginx源码
<p class="jhl-title">Windows下的Nginx战役,人不作就不会死!就像是拿着麦当劳的优惠券去买肯德基一样,别扭啊 Nginx是一款轻量级的Web?服务器、反向代理服务器、邮件服务器等等集一大串荣誉于一身的大牌人物!他是一个俄国的富家子弟,但对于老美这个邻居家的小孩Windows却不是那么和善,性格,品相各异!毕竟不是一个妈生的孩子,╮( ̄▽ ̄")╭,不是一个妈生的...命运就是那么的捉弄,越是不想发生的、越是不想见到的、越是你躲避的,他就是会跳在你面前,张牙舞爪!有一天,Nginx去老美家办事,完了,没有媒介,2人沟通不畅,磕磕绊绊,好不舒坦... 切回正题,唠叨了半天,我们来看看怎么在Windows上编译Nginx模块,我是知识的搬运工() 准备工作: 1、下载?+ ?(C++编译环境) ->安装完成 2、下载??(GNU环境)-> 安装完成 3、下载?(SSL环境,自行下载 64位 or 32 位)-> 安装完成 4、下载?(Nginx源码下载器,自行下载 64位 or 32 位)?-> 安装完成 5、下载 PCRE?8.39:ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/(SSL相关,库函数) 6、下载?1.2.8(SSL相关,库函数) 7、下载??1.0.1e? <p class="jhl-title">操作步骤 <p class="jhl-item">1、获取Nginx源码:打开Cmd命令,切换到Mercurial安装目录,执行以下命令: <div class="cnblogs_code"> hg clone http:
?
auto/configure --with-=cl --builddir=objs --prefix=--conf-path=conf/nginx.conf --pid-path=logs/--http-log-path=logs/access.log --error-log-path=logs/--sbin-path=nginx.exe --http-client-body-temp-path=temp/--http-proxy-temp-path=temp/--http-fastcgi-temp-path=temp/--with--opt=-DFD_SETSIZE= --with-pcre=objs/lib/pcre---with-zlib=objs/lib/zlib-. --with-openssl=objs/lib/openssl---with-select_module --with-
build.bat
nmake -f objs/Makefile
? ??
?
? (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |