先进行支撑包的安装:
# yum install -y zlib
openssl升级步骤:
下载最新版本的openssl源码包
# wget ftp://ftp.openssl.org/source/openssl-1.0.1g.tar.gz
安装openssl
# tar -xzvf openssl-1.0.1g.tar.gz
# cd openssl-1.0.1g
# ./config --prefix=/opt/ssl shared zlib
# make
# make install
# mv /usr/bin/openssl /usr/bin/openssl.OFF
# mv /usr/include/openssl /usr/include/openssl.OFF
# ln -s /opt/ssl/bin/openssl /usr/bin/openssl
# ln -s /opt/ssl/include/openssl /usr/include/openssl
配置库文件搜索路径
# echo "/opt/ssl/lib" >> /etc/ld.so.conf
# ldconfig -v
# 查看openssl版本号,验证安装正确性
# openssl version -a
时间: 2024-10-10 06:16:01