更新zlib
yum install zlib
下载新版本的OpenSSL源码包
wget https://www.openssl.org/source/openssl-1.1.0c.tar.gz
安装OpenSSL
tar –xzvf openssl-1.1.0c.tar.gz
cd openssl-1.1.0c
./config shared zlib
make
make install
mv /usr/bin/openssl /usr/bin/openssl.OFF
mv /usr/include/openssl /usr/include/openssl.OFF
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
查看openssl版本号,验证安装正确性
openssl version –a