#操作升级openssl
sudo -i
apt-get install zlib*
#解压:
tar xf openssl-1.1.1k.tar.gz && cd openssl-1.1.1k
#编译安装:
./config --prefix=/usr/local/openssl1.1.1k --openssldir=/etc/ssl1.1.1k --shared zlib
make -j4 && make install
cp /usr/local/openssl1.1.1k/bin/* /usr/bin
ln -s /usr/local/openssl1.1.1k/lib/libssl.so.1.1 /usr/lib
ln -s /usr/local/openssl1.1.1k/lib/libcrypto.so.1.1 /usr/lib
vi /etc/ld.so.conf.d/libc.conf
#修改为
/usr/local/lib
/usr/lib
/usr/local/openssl1.1.1k/lib
#查看是否安装成功
ldd /usr/local/openssl1.1.1k/bin/openssl
openssl version