yum install -y zlib*
mkdir /data
cd /data
下载好tar包
tar zxf openssl-1.0.2g.tar.gz
cd openssl-1.0.2g
./config shared zlib
make depend
make
make install
mv /usr/bin/openssl /tmp/
mv /usr/include/openssl/ /tmp/
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
查看更新后的版本
openssl version -a