编译安装Nginx支持tls1.3 Li.013
1. 直接脚本安装, 分别安装openss 1.1.1k和Nginx. 步骤2 3分步安装是脚本的解释. 步骤4是配置和验证. curl -O https://raw.githubusercontent.com/leezicai/share/master/nginx/yum_install_openssl.sh sh yum_install_openssl.sh curl -O https://raw.githubusercontent.com/leezicai/share/master/nginx/yum_install_openssl_nginx.sh sh yum_install_openssl_nginx.sh 2. 分步安装, 安装Opentssl, tls1.3需要openssl 1.1.1以上版本, 默认CentOS中openssl版本1.1.1以下, 不支持. install_openssl.sh # 安装需要编译的软件 yum install -y gcc gcc-c++ pcre-devel zlib-devel make unzip gd-devel perl-ExtUtils-Embed libxslt-devel openssl-devel perl-Test-Simple yum groupinstall -y 'Development Tools' cd /usr/src wget https://www.openssl.org/source/openssl-1.1.1k.tar.gz tar xvf openssl-1.1.1k.tar.gz cp -r openssl-1.1.1k openssl cd openssl ./config --prefix=/usr/local/openssl --openssldir=/usr/local/openssl --libdir=/lib64 shared zlib-dynamic make -j4 make test make install mv /usr/bin/openssl /usr/bin/openssl-backup ln -s /usr/local/openssl/bin/openssl /usr/bin/openssl 3....