支撑包的安装:

yum install -y zlib  

openssl升级步骤:

查看系统中存在的OpenSSL版本号

openssl version –a  

下载最新版本的openssl源码包

wget ftp://ftp.openssl.org/source/openssl-1.0.1s.tar.gz  

安装openssl

tar -zxvf openssl-1.0.1s.tar.gz  
cd openssl-1.0.1s  
./config shared zlib  
make  
make install

mv /usr/bin/openssl /tmp  
mv /usr/include/openssl /tmp/openssl.bak  
ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl  
ln -s /usr/local/ssl/include/openssl /usr/include/openssl  

配置库文件搜索路径

echo "/usr/local/ssl/lib" >> /etc/ld.so.conf  
ldconfig -v  | grep  openssl  

查看openssl版本号,验证安装正确性

openssl version -a