有时我们不想使用系统自带的pcre,zlib,openssl来编译nginx时,可以下载想要的版本的源码来编译。(这种方式下,上面的一些rpm包估计可以简化一些)

pcre-8.35.tar.gz : https://sourceforge.net/projects/pcre/files/pcre/8.35/

zlib-1.2.11.tar.gz: https://sourceforge.net/projects/libpng/files/zlib/1.2.11/

OpenSSL\_1\_0\_2q: https://www.openssl.org/source/old/1.0.2/


https://github.com/openssl/openssl/releases/tag/OpenSSL\_1\_0\_2q

./configure --prefix=/usr/local/nginx --sbin-path=/usr/local/sbin --with-pcre=../other\_packages/pcre-8.35 --with-openssl=../other\_packages/openssl-1.0.2q --with-zlib=../other\_packages/zlib-1.2.11 --with-stream --with-http\_stub\_status\_module --with-http\_ssl\_module --without-http-gzip\_moule --add-module=../other\_modules/nginx-sticky-module-ng

--add-module=../other\_modules/headers-more-nginx-module

标签: nginx, openssl, module, pcre, ng

相关文章推荐

添加新评论,含*的栏目为必填