--with-cpp= 指向C预处理路径。 --with-cc-opt= 设置C编译器参数,指定--with-cc-opt="-I /usr/lcal/include",如果使用select()函数,还需要同时指定文件描述符数量--with-cc-opt="-D FD_SETSIZE=2048"。(PCRE库) --with-ld-opt= 设置连接文件参数,需要指定--with-ld-
--with-stream_realip_module \ --with-stream_ssl_preread_module \ --with-openssl=/root/openssl-1.1.1m/ /root/openssl-1.1.1m/ 解压后源码的目录。
make[1]: Entering directory `/opt/nginx-1.18.0'cd /usr/local/openssl \&&if[ -f Makefile ]; then make clean; fi \&& ./config --prefix=/usr/local/openssl/.openssl no-shared no-threads \&&make \&& make install_sw LIBDIR=lib/bin/sh: line2: ./config: No such file or directory ...
--with-pcre= 指向pcre库文件目录。 --with-pcre-opt= 在编译时为pcre库设置附加参数 。 --with-md5= 指向md5库文件目录。 --with-md5-opt= 编译时为md5库设置附加参数。 --with-md5-asm 使用md5汇编源。 --with-sha1= 指向sha1库文件目录。 --with-sha1-opt= 编译时为sha1库设置附加参数。 --wi...
--with-select_module(--without-select_module) #允许或不允许开启POLL模式,如果没有合适的,则开启该模式。 --with-poll_module(--without-poll_module) #开启HTTP SSL模块,使NGINX可以支持HTTPS请求。这个模块需要已经安装了OPENSSL,在DEBIAN上是libssl-dev ...
--with-openssl=DIR set path to OpenSSL library sources --with-openssl-opt=OPTIONS set additional build options for OpenSSL --with-debug enable debug logging 3、编译安装 [root@www nginx-1.14.0]# ./configure --user=nginx --group=nginx --prefix=/usr/local/nginx-1.14.0 \ > --with-http_...
./configure --with-debug --prefix=/usr/local/nginx --with-http_ssl_module\--with-openssl-opt=enable-ktls make -j16 make install 这时候可以看到,Nginx 链接的还是/lib/x86_64-linux-gnu/目录下的动态库,需要替换成我们自己编译的带有调试信息的库。以前我一般都是等Nginx进程起来以后再Attach上去调试,...
1built by gcc 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04) built with OpenSSL 1.1.1 11 Sep 2018TLS SNI support enabledconfigure arguments: --prefix=/usr/local/openresty/nginx \ --with-cc-opt='-O2 -O3' --add-module=../ngx_devel_kit-0.3.1 \ --add-module=../iconv-nginx-module-0.14 \ ...
--with--openssl=../openssl-3.0.0 --with-openssl--opt=enable-ktl 另一个 configure 选项面向 NGINX 官方二进制包(请见 nginx.org)中的模块。您还可以指定一组自定义模块。如要查看当前 NGINX 二进制文件的构建选项,请运行 nginx -V。 如要使用 OpenSSL 3.0.0 构建 NGINX,请运行以下命令: $ wget https...
使用国密需要把 openssl 替换成 Tongsuo,编译命令如下: $ ./configure --with-openssl=../Tongsuo-8.3.0 \ --with-openssl-opt=enable-ntls \ --with-ntls $ make -j $ make install 配置 开启NTLS 功能 listen... ssl;ssl_ntlson; 配置国密证书 ...