升级zlib
查看当前zlib版本
find /usr/ -name zlib.pc
cat /usr/lib64/pkgconfig/zlib.pc
编译安装
tar xf zlib-1.2.11.tar.gz
cd zlib-1.2.11
./configure --prefix=/usr/local/zlib1.2.5
make
make install
echo /usr/local/zlib1.2.5/lib >>/etc/ld.so.confldconfig -v
升级Openssl
查看现有openssl版本
openssl version -a
OpenSSL 1.0.1e-fips 11 Feb 2013
升级openssl
tar -xf openssl-1.0.2k.tar.gz
cd openssl-1.0.2k
./config shared zlib
make && make install
cd …
创建软连接
mv /usr/bin/openssl /usr/bin/openssl.old
mv /usr/include/openssl /usr/include/openssl.old
ln -sf /usr/local/ssl/bin/openssl /usr/bin/openssl
ln -sf /usr/local/ssl/include/openssl/ /usr/include/openssl
echo “/usr/local/ssl/lib” >> /etc/ld.so.conf
echo “/usr/local/apr/lib” >> /etc/ld.so.conf
ldconfig
ln -sf /usr/