364   Linux

1,查看openssl版本

# openssl version

2,下载openssl版本
# wget http://www.openssl.org/source/openssl-1.0.1g.tar.gz

3,解压,安装
# tar -zxvf openssl-1.0.1g.tar.gz
# cd  openssl-1.0.1g
# ./config shared zlib
# make && make install

4,修改历史的OpenSSL文件设置备份
# mv /usr/bin/openssl /usr/bin/openssl.old
# mv /usr/include/openssl /usr/include/openssl.old

5,设置软连接使其使用新的OpenSSL版本 刚刚安装的OpenSSL默认安装在/usr/local/ssl
# ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl
# ln -s /usr/local/ssl/include/openssl /usr/include/openssl

6,更新动态链接库数据
# echo "/usr/local/ssl/lib" >> /etc/ld.so.conf
# ldconfig -v

,



Leave a Reply

Your email address will not be published. Required fields are marked *