Ubuntu 16.04 安装openssl 指定版本

一下步骤安装的是openssl 1.0.2g版本,如果要安装其他版本只需要替换1.0.2g到指定版本,例如1.1.0l

1. sudo apt-get install make (Install compiling library Make)

2. wget https://www.openssl.org/source/openssl-1.0.2g.tar.gz (Download the latest OpenSSL 1.0.2g 源代码)

3. tar -xzvf openssl-1.0.2g.tar.gz (Extract the tar ball to the local directory)

4. cd openssl-1.0.2l (Enter extracted OpenSSL directory)

5. sudo ./config (Configure binaries for compiling)

6. sudo make install (install configured binaries)

7. sudo ln -sf /usr/local/ssl/bin/openssl `which openssl` (This will create a sym link to the new binaries), 这一步可能失败,替换 ‘which openssl’ 为 /usr/local/bin/openssl 再试一次

8. openssl version -v (Used to check the version of the Current OpenSSL binaries)

转载于:https://www.cnblogs.com/shengguang/p/11044899.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值