在liunx的centos7系统上编译nginx阶段出现如上的错误,OpenSSL的版本是openssl-1.1.1
编译的参数如下
./configure --sbin-path=/usr/local/nginx/nginx \
--conf-path=/usr/local/nginx/nginx.conf \
--pid-path=/usr/local/nginx/nginx.pid \
--with-http_ssl_module \
--with-pcre=/usr/local/src/pcre-8.42 \
--with-zlib=/usr/local/src/zlib-1.2.11 \
--with-openssl=/usr/local/src/openssl-1.1.1
make
make install
Linux上安装nginx时,需要先进行安装插件,包括有pcre、openssl和zlib。具体的你可以看下边这个地址里的:
https://www.cnblogs.com/taiyonghai/p/6728707.html