[CentOS] openssl 升级到1.0.1g

先进行支撑包的安装:

yum install -y zlib 

openssl升级步骤:

下载最新版本的openssl源码包
wget ftp://ftp.openssl.org/source/openssl-1.0.1g.tar.gz

安装openssl
tar –xzvf openssl-1.0.1g.tar.gz  
cd 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版本号,验证安装正确性
openssl version –a 

openssl1g

文章仅展示,不提供购买,下载,请支持正版:http://s.w7.cc/
Yusky » [CentOS] openssl 升级到1.0.1g