下载对应版本的nginx

nginx

下载相应模块

编译前需要pcre和zlib都需要下载

tar xvf nginx.tar.gz
cd nginx
make clean
./configure --with-pcre=../pcre-8.45  --with-zlib=../zlib-1.2.11  --with-openssl=/usr/bin  --add-dynamic-module=../<模块目录> --with-compat
make
cd objs