OpenSSL下载地址:https://www.openssl.org/source/
1、上传openssl 1.1.1t源文件到 /usr/local/src/并解压
2、编译安装
./config --prefix=/usr/local/openssl --openssldir=/usr/local/openssl --shared zlib
make
make install
3、相关配置
mv /usr/bin/openssl /usr/bin/openssl.old
mv /usr/lib64/openssl /usr/lib64/openssl.old
mv /usr/lib64/libssl.so /usr/lib64/libssl.so.old
ln -s /usr/local/openssl/bin/openssl /usr/bin/openssl
ln -s /usr/local/openssl/include/openssl /usr/include/openssl
ln -s /usr/local/openssl/lib/libssl.so /usr/lib64/libssl.so
echo "/usr/local/openssl/lib" >> /etc/ld.so.conf
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/openssl/lib
ldconfig -v
4、检查确认
openssl version
openssl version -a