章工运维 章工运维
首页
  • linux
  • windows
  • 中间件
  • 监控
  • 网络
  • 存储
  • 安全
  • 防火墙
  • 数据库
  • 系统
  • docker
  • 运维工具
  • other
  • elk
  • K8S
  • ansible
  • Jenkins
  • GitLabCI_CD
  • 随笔
  • 面试
  • 工具
  • 收藏夹
  • Shell
  • python
  • golang
友链
  • 索引

    • 分类
    • 标签
    • 归档
    • 首页 (opens new window)
    • 关于我 (opens new window)
    • 图床 (opens new window)
    • 评论 (opens new window)
    • 导航栏 (opens new window)
周刊
GitHub (opens new window)

章工运维

业精于勤,荒于嬉
首页
  • linux
  • windows
  • 中间件
  • 监控
  • 网络
  • 存储
  • 安全
  • 防火墙
  • 数据库
  • 系统
  • docker
  • 运维工具
  • other
  • elk
  • K8S
  • ansible
  • Jenkins
  • GitLabCI_CD
  • 随笔
  • 面试
  • 工具
  • 收藏夹
  • Shell
  • python
  • golang
友链
  • 索引

    • 分类
    • 标签
    • 归档
    • 首页 (opens new window)
    • 关于我 (opens new window)
    • 图床 (opens new window)
    • 评论 (opens new window)
    • 导航栏 (opens new window)
周刊
GitHub (opens new window)
  • linux

    • rsync

      • rsync用法及参数详解
      • rsync服务实现推送,拉取
    • dns

    • sed、awk、grep、find四剑客

    • LVM管理
    • sudo权限规划
    • linux修改网卡为eth0的两种方法
    • Logrotate入门了解及生产实践
    • linux中用dd命令来测试硬盘读写速度
    • linux 阿里云盘挂载错误
    • CentOS7安装Android SDK
    • centos7安装更新git
    • linux启动顺序
    • centos7升级openssl
    • expect工具的安装和使用方法
    • linux下使用v2ray
    • centos7安装java环境的两种方式
    • linux-centos7系统设置时区及同步时间
    • rsyslog日志系统:rsyslog配置文件
    • rsyslog的安装、使用、详解
    • safe-rm防止删除重要的文件
    • linux如何获取打开文件和文件描述符数量
    • LVS集群-DR模式
    • linux服务器安装ffmpeg
    • linux服务器安装samba
    • 使用openssl创建自签发证书
    • linux服务器部署next.js服务
    • linux服务器ionice命令使用方式
    • linux服务器curl命令常用操作
  • windows

  • 中间件

  • 网络

  • 安全

  • 存储

  • 防火墙

  • 数据库

  • 系统

  • docker

  • other

  • 监控

  • 运维
  • linux
章工运维
2023-04-13

centos7升级openssl

  1. 首先,更新系统并安装依赖包:
yum install -y gcc gcc-c++ autoconf automake zlib-devel pcre-devel
1
  1. 查找并记下当前安装的 OpenSSL 版本:
openssl version
1
  1. 访问 OpenSSL 的官方网站(https://www.openssl.org/source/ )查找最新的 OpenSSL 版本。在这里,我们假设最新版本为openssl-1.1.1k.tar.gz。请根据实际情况替换为最新版本。

  2. 下载并解压 OpenSSL 源码包:

cd /usr/local/src
sudo wget https://www.openssl.org/source/openssl-1.1.1k.tar.gz
sudo tar -zxf openssl-1.1.1k.tar.gz
1
2
3
  1. 进入解压后的目录并编译安装 OpenSSL:
cd openssl-1.1.1k
sudo ./config --prefix=/usr/local/openssl --openssldir=/usr/local/openssl shared zlib
sudo make
sudo make install
1
2
3
4
  1. 更新系统库:
sudo echo "/usr/local/openssl/lib" > /etc/ld.so.conf.d/openssl.conf
sudo ldconfig
1
2
  1. 创建 OpenSSL 的符号链接:
sudo mv /usr/bin/openssl /usr/bin/openssl.old
sudo ln -s /usr/local/openssl/bin/openssl /usr/bin/openssl
1
2
  1. 检查 OpenSSL 的版本以验证升级是否成功:
openssl version
1

如果一切顺利,你应该会看到新版本的 OpenSSL。请注意,升级 OpenSSL 可能会影响依赖此库的其他软件。在升级之后,确保测试所有依赖 OpenSSL 的关键服务和应用程序,以确保它们仍然可以正常工作。

微信 支付宝
上次更新: 2023/04/21, 08:57:47

← linux启动顺序 expect工具的安装和使用方法→

最近更新
01
shell脚本模块集合
05-13
02
生活小技巧(认知版)
04-29
03
生活小技巧(防骗版)
04-29
更多文章>
Theme by Vdoing | Copyright © 2019-2025 | 点击查看十年之约 | 鄂ICP备2024072800号
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式