在此文的基礎上
https://www.cnblogs.com/dwj192/p/13962845.html
只更新nginx 的openssl,不更新系統的openssl
下載新版openssl,
wget https://www.openssl.org/source/openssl-1.1.1l.tar.gz tar -zxvf openssl-1.1.1l.tar.gz -C /usr/local
configure命令替換為
./configure --prefix=/usr/local/nginx119 --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module --with-pcre --with-http_realip_module --with-stream --with-http_v2_module --with-openssl=/usr/local/openssl-1.1.1l/
編譯安裝即可,記得刪除原來的nginx可執行文件