nginx静态编译win10
·
msys2的mingw环境:
pacman -S \
mingw-w64-x86_64-gcc \
mingw-w64-x86_64-make \
mingw-w64-x86_64-pcre2 \
mingw-w64-x86_64-zlib \
mingw-w64-x86_64-openssl \
git tar make pkg-config
git clone https://github.com/nginx/nginx.git -b stable-1.28
cd nginx
auto/configure --with-cc-opt='-static -static-libgcc' --without-pcre --without-http_rewrite_module --without-http_ssi_module --without-http_auth_basic_module --without-http_gzip_module
make -j16
make install DESTDIR=`pwd`/nginx-install
更多推荐


所有评论(0)