CentOS7 OpenSSL升级1.1.1w

1.安装依赖

复制代码
# openssl-3.4.0需要perl-IPC-Cmd  perl-Data-Dumper
yum -y install gcc*
yum -y install perl-IPC-Cmd perl-Data-Dumper

2.备份、卸载旧OpenSSL

查找安装目录并备份

复制代码
# whereis openssl
openssl: /usr/bin/openssl /usr/lib64/openssl /usr/share/man/man1/openssl.1ssl.gz
mv /usr/bin/openssl  /usr/bin/openssl.old
mv /usr/lib64/openssl /usr/lib64/openssl.old
mv /usr/include/openssl  /usr/include/openssl.old

卸载 openssl

复制代码
yum -y remove openssl

3安装openssl

复制代码
tar -xzvf openssl-1.1.1w.tar.gz
cd openssl-1.1.1w/
./config --prefix=/usr
make && make install

4验证

复制代码
# whereis openssl
# openssl version
相关推荐
青瓦梦滋7 分钟前
协议定制/序列化-反序列化(Linux视角)
linux·服务器·网络·c++
阿成学长_Cain3 小时前
Linux dirs命令详解|Bash目录堆栈管理快速切换目录实战教程
linux·运维·前端·数据库
ICECREAM4 小时前
Linux 进程间通讯(IPC)——总结
linux
想你依然心痛5 小时前
嵌入式Linux安全加固:SELinux、Capabilities与Seccomp——强制访问控制与沙箱
linux·运维·安全
REDcker6 小时前
macOS 挂载 Linux 远程目录详解
linux·运维·macos
2601_961593427 小时前
Mac 上搭建Linux环境吗?VMware + CentOS Stream 9 镜像快速部署
linux·运维·ide·macos·centos
dddwjzx7 小时前
嵌入式Linux C应用编程入门——线程 (二)
linux·嵌入式
写代码的学渣7 小时前
Linux systemd 开机启动日志逐行详细解析报告
linux·运维·服务器
阿成学长_Cain8 小时前
Linux telinit 命令详解:运行级别切换|关机重启|系统维护一站式掌握
linux·运维·前端·网络
qeen879 小时前
【Linux】指令补充与shell的简单介绍
linux·运维·服务器