记服务器升级openssl-1.0.1g之安全漏洞Heartbleed

vi update_openssl_version_to_1.0.1g.sh

#!/bin/bash

[ ! -f /tmp/openssl-1.0.1g.tar.gz ] && echo "The software is not exist in /tmp dir " && exit 7
tar -axf /tmp/openssl-1.0.1g.tar.gz -C /usr/local/src/
cd /usr/local/src/openssl-1.0.1g/
./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 version -a


记服务器升级openssl-1.0.1g之安全漏洞Heartbleed_第1张图片



你可能感兴趣的:(OpenSSL)