升级openssl
https://blog.csdn.net/kadwf123/article/details/80809004
yum install zlib zlib-devel -y
./config shared zlib
make
make install
mv /usr/bin/openssl /usr/bin/openssl.bak
mv /usr/include/openssl /usr/include/openssl.bak
ln -s /usr/local/bin/openssl /usr/bin/openssl
ln -s /usr/local/include/openssl /usr/include/openssl
echo “/usr/local/lib” >> /etc/ld.so.conf
ldconfig -v
ln -s /usr/local/lib64/libssl.so.1.1 /usr/lib64/libssl.so.1.1
ln -s /usr/local/lib64/libcrypto.so.1.1 /usr/lib64/libcrypto.so.1.1
servyou的nginx配置
./configure --prefix=/usr/local/nginx --with-http_gunzip_module --with-http_secure_link_module --with-http_random_index_module --with-stream --with-http_mp4_module --with-http_dav_module --with-http_sub_module --with-http_addition_module --with-openssl-opt='enable-tls1_3 enable-weak-ssl-ciphers' --with-http_ssl_module --with-http_flv_module --with-http_stub_status_module --add-module=/usr/local/src/nginx_upstream_check_module-master --with-http_gzip_static_module --with-pcre=/usr/local/src/pcre-8.37 --with-openssl=/usr/local/src/openssl-1.0.1u --with-file-aio --with-http_image_filter_module --with-http_perl_module --with-http_realip_module --with-ld-opt=-Wl,-E --with-zlib=/usr/local/src/zlib-1.2.11 --add-module=/usr/local/src/nginx-module-vts --add-module=/usr/local/src/lua-nginx-module-0.10.13 --add-module=/usr/local/src/ngx_devel_kit-0.3.0 --with-ld-opt=-ljemalloc --with-ld-opt=-Wl,-rpath,/usr/local/luajit/lib --add-module=/usr/local/src/nginx_ajp_module-master --add-module=/usr/local/src/redis2-nginx-module-master --add-module=/usr/local/src/echo-nginx-module-master