由于openssl漏洞频发,我们需要升级openssl到官方最新版,步骤如下:
下载安装最新openssl wget http://www.openssl.org/source/openssl-1.0.1g.tar.gz tar xzvf openssl-1.0.1g.tar.gz ./config shared zlib make make install cd /usr/local/ssl/ ./bin/openssl version -a 替换旧版openssl mv /usr/bin/openssl /usr/bin/openssl.old mv /usr/include/openssl /usr/include/openssl.old 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 测试新版是否正常 openssl version -a