Apache httpd 安全漏洞处理-升级httpd版本

文章目录

  • 前言
  • 一、现状
  • 二、使用codeit库升级Apache
    • [1. 安装epel-release](#1. 安装epel-release)
    • [2. 下载codeit的repo文件](#2. 下载codeit的repo文件)
    • [3. 查看版本信息](#3. 查看版本信息)
    • [4. 更新httpd版本后确认版本](#4. 更新httpd版本后确认版本)
    • [5. 重启httpd服务](#5. 重启httpd服务)
  • 总结

前言

手上有台zabbix-server服务器,用了httpd的服务支撑,漏扫时发现有很多的Apache httpd的安全漏洞,下面记录一下httpd服务升级的流程

参考:Apache Http Server安全漏洞解决


一、现状

Httpd版本,目前是2.4.6

shell 复制代码
[root@node56 yum.repos.d]# httpd -v
Server version: Apache/2.4.6 (CentOS)
Server built:   Mar 24 2022 14:57:57

漏洞列表截图

二、使用codeit库升级Apache

1. 安装epel-release

shell 复制代码
cd /etc/yum.repos.d
wget https://repo.codeit.guru/codeit.el`rpm -q --qf "%{VERSION}" $(rpm -q --whatprovides redhat-release)`.repo

2. 下载codeit的repo文件

shell 复制代码
cd /etc/yum.repos.d
wget https://repo.codeit.guru/codeit.el`rpm -q --qf "%{VERSION}" $(rpm -q --whatprovides redhat-release)`.repo

3. 查看版本信息

shell 复制代码
[root@node56 yum.repos.d]# yum info httpd

结果

shell 复制代码
已安装的软件包
名称    :httpd
架构    :x86_64
版本    :2.4.6
发布    :97.el7.centos.5
大小    :9.4 M
源    :installed
来自源:updates
简介    : Apache HTTP Server
网址    :http://httpd.apache.org/
协议    : ASL 2.0
描述    : The Apache HTTP Server is a powerful, efficient, and extensible
         : web server.

可安装的软件包
名称    :httpd
架构    :x86_64
版本    :2.4.57
发布    :1.codeit.el7
大小    :1.4 M
源    :CodeIT/x86_64
简介    : Apache HTTP Server
网址    :https://httpd.apache.org/
协议    : ASL 2.0
描述    : The Apache HTTP Server is a powerful, efficient, and extensible
         : web server.

4. 更新httpd版本后确认版本

shell 复制代码
yum update httpd
httpd -v

结果

shell 复制代码
[root@node56 yum.repos.d]# httpd -v
Server version: Apache/2.4.57 (codeit)
Server built:   Apr  6 2023 17:31:51

5. 重启httpd服务

shell 复制代码
systemctl restart httpd

总结

升级完毕

相关推荐
源图客2 天前
Apache Flink 2.3.0(最新版本)
大数据·flink·apache
代立冬5 天前
927 个 PR:Apache SeaTunnel 3.0.0 正式发布!AI 时代,数据集成正在迎来新的可能
人工智能·apache
zhongben_keji6 天前
家政小程序开发全解:经营模式、品类矩阵、派单约束与信用核验
线性代数·矩阵·apache
weixin_177297220697 天前
二手旧物回收小程序先要解决的不是下单,是“上门之后价格变了怎么办“
小程序·apache
努力变的更好7 天前
H5与小程序之间的回调
前端·小程序·apache
十碗饭吃不饱9 天前
Apache POI 踩坑:setFontFamily 二次设置字体不生效、样式残留问题深度解析
java·word·apache
心随_风动10 天前
Ubuntu系统安装Apache服务教程
linux·ubuntu·apache
ly768911 天前
Kafka 消费者重试与死信:Spring for Apache Kafka 的边界设计
spring·kafka·apache·并发消费·消费者重试·死信主题·位移提交
HoneyMoose12 天前
Ubuntu Apache 配置多站点提示 SSL 错误
ubuntu·apache·ssl
骑着蜗牛撵大象32712 天前
一套引擎撑起树表双模型:Apache IoTDB 2.0 与 TsFile 的选型答卷
apache·时序数据库·iotdb·tsfile·树模型·表模型