centos 6.5 安装openssl

1.下载
wget https://www.openssl.org/source/openssl-1.0.2h.tar.gz

2.解压
tar zxf openssl-1.0.2h.tar.gz
cd openssl-1.0.2h

3.安装
./config shared zlib

make
 make install
 
 mv /usr/bin/openssl /usr/bin/openssl.bak
 
 mv /usr/include/openssl /usr/include/openssl.bak
 
 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

4.检测安装是否成功

openssl version -a

参考网址

posted @ 2016-08-16 09:51  nikolates_fei  阅读(16571)  评论(0编辑  收藏  举报