代码下载
nginx源码下载
nginx: downloadhttp://nginx.org/en/download.htmlhttp://nginx.org/download/nginx-1.22.0.tar.gz
http://nginx.org/download/nginx-1.22.0.tar.gz
zlib源码下载
zlib Home Sitehttp://zlib.net/ http://zlib.net/zlib-1.2.12.tar.gz
http://zlib.net/zlib-1.2.12.tar.gz
pcre源码下载http://www.pcre.org/http://www.pcre.org/
https://github.com/PCRE2Project/pcre2/releases/download/pcre2-10.40/pcre2-10.40.tar.gz
https://github.com/PCRE2Project/pcre2/releases/download/pcre2-10.40/pcre2-10.40.tar.gz
openssl源码下载
编译
Building nginx from Sourceshttp://nginx.org/en/docs/configure.html
./configure --prefix=/mynginx \
--with-http_ssl_module \
--with-pcre=../pcre2-10.40 \
--with-zlib=../zlib-1.2.12 \
--with-openssl=../openssl-openssl-3.0.4
make
make install