【软件更新】在Ubuntu24 LTS中更新openssl到指定版本,例如openssl3.5.6 LTS

说明

openssl是openssh及其他软件的基础加密依赖软件,应使用系统默认内置的版本,若是有专业的系统运维提供丰富的技术支持,可以自定义更新到任意指定版本,若无,应使用系统仓库提供的最新版本。

参考

bash 复制代码
https://www.openssl.org/

https://openssl-library.org/

https://docs.openssl.org/master/man7/ossl-guide-introduction/

https://github.com/openssl/openssl/blob/master/NOTES-UNIX.md

代码仓库

bash 复制代码
https://github.com/openssl/openssl
https://openssl-library.org/source/gitrepo/index.html

查看openssl的版本

bash 复制代码
openssl version
ssh -V

下载软件

https://openssl-library.org/source/

软件名字格式类似openssl-3.5.6.tar.gz

上传至服务器

解压文件

安装基础环境

bash 复制代码
./Configure --prefix=/opt/openssl

安装

bash 复制代码
make -j$(nproc)
make install

验证和配置生效

bash 复制代码
# 临时验证
LD_LIBRARY_PATH=/opt/openssl/lib64 /opt/openssl/bin/openssl version
# 全局配置生效并验证
rm -f /etc/ld.so.conf.d/openssl.conf
echo "/opt/openssl/lib64" > /etc/ld.so.conf.d/openssl.conf
ldconfig
/opt/openssl/bin/openssl version
ln -sf /opt/openssl/bin/openssl /usr/bin/openssl
openssl version
相关推荐
发疯的技术鼠1 小时前
03-优先级与调度
linux
无足鸟ICT3 小时前
【RHCA+】sosreport(收集诊断文档)
linux·运维·服务器
GeW3 小时前
世界目光聚焦中国:底层技术、Linux、数据库的破局逻辑
linux·数据库
星恒随风5 小时前
MySQL 从零入门(十):MVCC、Undo Log 与 Read View 详解——InnoDB 如何实现事务隔离?
linux·数据库·笔记·sql·mysql
瑞雪兆丰年兮6 小时前
Linux零基础快速入门-第二章 Linux基础命令
linux·运维·服务器
咋的啥名都用不了呢~8 小时前
Linux项目部署6(安装Elasticsearch)
linux
无奈笑天下9 小时前
银河麒麟桌面上USB打印机无法打印问题标准处理流程
linux·运维·网络协议
15Moonlight10 小时前
Linux 网络(11):IO 多路转接(select /poll/epoll)
linux·网络
wno70412 小时前
CentOS下FTP服务搭建
linux·运维·centos
15Moonlight12 小时前
Linux网络(12):Reactor 模式
linux·网络