安装 nginx 如果要编译 openssl ,需要手动指定 openssl 目录
openssl 官网:https://www.openssl.org/source/
下载解压 nginx 后,开始编译
./configure --prefix=/usr/local/nginx \
--error-log-path=/var/nginx/log/error.log \
--with-file-aio \
--user=nobody \
--group=nobody \
--with-threads \
--with-http_ssl_module \
--with-http_v2_module \
--with-http_realip_module \
--with-http_gzip_static_module \
--with-http_secure_link_module \
--http-log-path=/var/nginx/log/message.log \
--with-debug \
--with-openssl=/package/openssl-1.1.1 \
--with-pcre