--with-stream_realip_module \ --with-stream_ssl_preread_module \ --with-openssl=/root/openssl-1.1.1m/ /root/openssl-1.1.1m/ 解压后源码的目录。
--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...
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 ...
./auto/configure –prefix=. –sbin-path=nginx.exe –with-cc-opt=”-DFD_SETSIZE=4096″ –with-cc=cl –builddir=objs.msvc8 –conf-path=conf/nginx.conf –pid-path=logs/nginx.pid –http-log-path=logs/access.log –error-log-path=logs/error.log –http-client-body-temp-path=temp/client_...
--with开头的,默认是禁用的(没启动的,想使用的话需要在编译的时候加上) --without开头的,默认是启用的(不想启用此模块时,可以在编译的时候加上这个参数) --prefix= 指向安装目录。 --sbin-path= 指定执行程序文件存放位置。 --modules-path= 指定第三方模块的存放路径。
sudo apt-get install openssl libssl-dev 安装openssl和libssl-dev库 另外,如果你不想安装OpenSSL,或者想指定第三方OpenSSL用于编译,可以在Nginx编译时添加编译参数:--with-openssl 下载Nginx源码 接下来,我们下载并解压Nginx的源码,Nginx源码下载官方地址:
如果您从 centos 7 存储库下载Nginx,您将获得使用OpenSSL 1.0.2k-fips. 但是如果你想启用 TLS 1.3,那么你必须满足一些要求。要启用TLS 1.3任何发行版,请查看以下必需的详细信息。 要求: Apache 版本2.4.37或greater. Nginx 版本1.13.0或greater. OpenSSL 版本1.1.1或greater. ...
--with-krb-srvnam=NAME Kerberos服务主的名称. 缺省是 “postgres”.通常没有理由改变这个值. --with-openssl=DIRECTORY 制作支持 SSL (加密的)联接的postgres. 这个选项需要安装 OpenSSL 包. DIRECTORY 参数声明 OpenSSL 安装的根目录;缺省时 /usr/local/ssl. ...
--with-openssl="/usr/local/gmssl" \ --with-cc-opt="-I/usr/local/gmssl/include" \ --with-ld-opt="-lm" 执行报错如下: ./configure: error: the HTTP rewrite module requires the PCRE library. You can either disable the module by using --without-http_rewrite_module ...
8.0 #./configure --prefix=/opt/X_nginx/nginx --with-http_ssl_module #make && sudo make install --prefix=/opt/X_nginx/nginx 安装目录 --with-http_ssl_module 添加 https 支持 编译时将 ssl 模块静态编译 ./configure --prefix=/opt/X_nginx/nginx \ --with-openssl=../openssl-1.0.2l \ ...