您的位置:首页 > 运维架构

安装openssl和openssl-devel

2017-11-24 09:43 471 查看
以下借鉴了他人的安装方法,并根据我自己的安装进行了修改

1.下载

wget https://www.openssl.org/source/openssl-1.0.2h.tar.gz
2.解压

tar zxf openssl-1.0.2h.tar.gz

3.安装

cd openssl-1.0.2h

./config shared zlib

because of configuration changes, you MUST do the following before

*** building:

提醒需要在build之前做make depend

make depend

4.

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: