Coder Social home page Coder Social logo

charlieyqin / nginx-build-windows Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tjliupeng/nginx-build-windows

0.0 3.0 0.0 9.82 MB

Building Nginx on Windows

Perl 16.49% Vim Script 0.42% Makefile 0.93% Shell 1.82% DIGITAL Command Language 0.10% C 71.02% C++ 1.55% Objective-C 0.66% Assembly 1.45% M4 0.36% eC 0.02% Module Management System 0.01% Emacs Lisp 0.01% Python 0.01% CMake 0.16% Batchfile 0.07% HTML 2.45% Roff 2.14% Pascal 0.34% SAS 0.01%

nginx-build-windows's Introduction

nginx build on Windows

Environment and Tools

  • Microsoft Visual Studio 2015
  • MinGW (which including Msys)
  • Perl, such as ActivePerl to build Openssl
  • ThirdParty libraries source: PCRE, zlib and Openssl
  • Version: nginx 1.13.9; PCRE 8.40; Openssl 1.1.0g; zlib 1.2.11

You can download the library source code tar.gz and extract them to the objs/lib folder. This repository includes them already.

Note: The version in the Openssl folder name should be removed because in the file auto\lib\openssl\makefile.msvc the folder name is without version information.

Build Steps

  1. Open the "Developer Command Prompt for VS2015". Run "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\vcvars32.bat".
  2. Run "C:\MinGW\msys\1.0\msys.bat" to open the MINGW32 environment.
  3. Enter the repository folder. Run the command
auto/configure \
--with-cc=cl \
--builddir=objs \
--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 \
--with-cc-opt=-DFD_SETSIZE=1024 \
--with-pcre=objs/lib/pcre-8.40 \
--with-zlib=objs/lib/zlib-1.2.11 \
--with-openssl=objs/lib/openssl \
--with-openssl-opt=no-asm \
--with-select_module  \
--with-http_ssl_module \
  1. Run "nmake -f objs/Makefile".
  2. The nginx.exe should be generated in objs folder.

nginx-build-windows's People

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.