宇筱博客

  • 解决办法
  • 学无止境
  • 记录时光
  • 百宝箱
宇筱博客
点滴记忆,汇聚成海。
  1. 首页

  2. Warning: Undefined array key 0 in /www/wwwroot/www.timeit.cn/wp-content/themes/kratos-4.3.2/single.php on line 30

    Warning: Attempt to read property "term_id" on null in /www/wwwroot/www.timeit.cn/wp-content/themes/kratos-4.3.2/single.php on line 30

    Warning: Undefined property: WP_Error::$term_id in /www/wwwroot/www.timeit.cn/wp-content/themes/kratos-4.3.2/single.php on line 35

    Warning: Undefined property: WP_Error::$name in /www/wwwroot/www.timeit.cn/wp-content/themes/kratos-4.3.2/single.php on line 37

    Warning: Undefined property: WP_Error::$parent in /www/wwwroot/www.timeit.cn/wp-content/themes/kratos-4.3.2/single.php on line 38
  3. 正文

Debian 10 Linux升级openssl1.1.1M

2022年2月10日 1000点热度 2人点赞 0条评论

1、下载openssl

wget https://www.openssl.org/source/openssl-1.1.1m.tar.gz

2、创建安装目录

mkdir -p usr/local/openssl

3、解压

tar -zxvf openssl-1.1.1m.tar.gz

4、编译安装

cd openssl-1.1.1m
./config --prefix=/usr/local/openssl no-zlib #不需要zlib
make
make install

5、备份原配置

mv /usr/bin/openssl /usr/bin/openssl.bak
mv /usr/include/openssl/ /usr/include/openssl.bak

6、新版配置

ln -s /usr/local/openssl/include/openssl /usr/include/openssl
ln -s /usr/local/openssl/lib/libssl.so.1.1 /usr/local/lib64/libssl.so
ln -s /usr/local/openssl/bin/openssl /usr/bin/openssl

7、修改系统配置,写入openssl库文件的搜索路径

echo "/usr/local/openssl/lib" >> /etc/ld.so.conf

8、使修改后的/etc/ld.so.conf生效

ldconfig -v

9、查看openssl版本

[root@test ~]#openssl version
OpenSSL 1.1.1l 24 Aug 2021

原文链接:Linux升级openssl1.1.1l (sunkai.net)

标签: 暂无
最后更新:2022年2月10日

小渔民

这个人很懒,什么都没留下

点赞

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

COPYRIGHT © 2025 宇筱博客. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

豫ICP备15017825号-2