centos升级OpenSSL

前端之家收集整理的这篇文章主要介绍了centos升级OpenSSL前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

安装版本有差异
之前尝试安装

5080    2017-Feb-16 12:03:39    openssl-1.1.0e.tar.gz (SHA256) (PGP sign) (SHA1)

时失败
重新安装1.0.2k版本

5184    2017-Jan-26 13:45:54    openssl-1.0.2k.tar.gz (SHA256) (PGP sign) (SHA1)

即可
参考此篇

官方下载地址:
https://www.openssl.org/source/
记录

1. wget http://www.openssl.org/source/openssl-1.0.1h.tar.gz  
  2. tar zxvf openssl-1.0.1h.tar.gz  
  3. cd openssl-1.0.1h  
  4. ./config --prefix=/usr/local/openssl 
  5. make && make install  
  6. mv /usr/bin/openssl /usr/bin/openssl.OFF  
  7. mv /usr/include/openssl /usr/include/openssl.OFF  
  8. ln -s /usr/local/openssl/bin/openssl /usr/bin/openssl  
  9. ln -s /usr/local/openssl/include/openssl /usr/include/openssl  
  10. echo "/usr/local/openssl/lib">>/etc/ld.so.conf  
  11. ldconfig -v  
  12. openssl version -a

操作历史

1001  [2017-02-27 10:52:41] mkdir ssl
 1002  [2017-02-27 10:54:47] ll
 1003  [2017-02-27 10:54:51] cd ssl/
 1004  [2017-02-27 10:54:52] ll
 1005  [2017-02-27 10:55:03] cp /usr/bin/openssl  /home/ssl/
 1006  [2017-02-27 10:55:21] cp /usr/include/openssl/ /home/ssl/
 1007  [2017-02-27 10:55:30] cp -r /usr/include/openssl/ /home/ssl/
 1008  [2017-02-27 10:55:41] ll
 1009  [2017-02-27 10:55:58] mkdir dire
 1010  [2017-02-27 10:56:10] cp -r /usr/include/openssl/ /home/ssl/dire/
 1011  [2017-02-27 10:56:30] ll
 1012  [2017-02-27 10:57:20] tar -zxvf openssl-1.0.2k.tar.gz -C /usr/local/openssl
 1013  [2017-02-27 10:57:34] tar -zxvf openssl-1.0.2k.tar.gz -C /usr/local/
 1014  [2017-02-27 10:57:40] cd /usr/local/openssl-1.0.2k/
 1015  [2017-02-27 10:58:09] ./config --prefix=/usr/local/openssl
 1016  [2017-02-27 10:58:46] make
 1017  [2017-02-27 11:00:46] make test
 1018  [2017-02-27 11:02:12] make install
 1019  [2017-02-27 11:03:05] openssl -version
 1020  [2017-02-27 11:03:13] openssl version
 1021  [2017-02-27 11:03:56] mv /usr/bin/openssl /usr/bin/openssl.bak
 1022  [2017-02-27 11:04:16] mv /usr/include/openssl/ /usr/include/openssl.bak
 1023  [2017-02-27 11:04:49] ln -s /usr/local/openssl/bin/openssl  /usr/bin/
 1024  [2017-02-27 11:05:06] ln -s /usr/local/openssl/include/openssl/ /usr/include/
 1025  [2017-02-27 11:05:38] echo "/usr/local/openssl/lib" >> /etc/ld.so.conf
 1026  [2017-02-27 11:05:42] ldconfig -v
 1027  [2017-02-27 11:05:51] openssl version -a
 1028  [2017-02-27 11:06:04] openssl version
 1029  [2017-02-27 11:08:28] history
原文链接:https://www.f2er.com/centos/378589.html

猜你在找的CentOS相关文章