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

总结

升级完毕

相关推荐
东风微鸣1 天前
Apache Parquet 优势与日志应用场景解析
运维·apache
武子康1 天前
大数据-193 Apache Tez 实战:Hive on Tez 安装配置、DAG原理与常见坑
大数据·后端·apache
SelectDB2 天前
慢 SQL 诊断准确率 99.99%,天翼云基于 Apache Doris MCP 的 AI 智能运维实践
数据库·人工智能·apache
Asurplus2 天前
Centos7安装Maven环境
java·centos·maven·apache·yum
晚风吹人醒.2 天前
Apache Web网站服务:安装、编译、配置,全流程讲解
服务器·apache·软连接·网页·硬链接
一个天蝎座 白勺 程序猿2 天前
Apache IoTDB(12):深度解析时序数据聚合的GROUP BY与HAVING子句
数据库·sql·apache·iotdb
世界尽头与你2 天前
CVE-2021-40438_ Apache HTTP Server mod_proxy 模块 SSRF漏洞
安全·网络安全·渗透测试·apache
浔川python社3 天前
《C++ 小程序编写系列》(第四部):实战:简易图书管理系统(类与对象篇)
java·开发语言·apache
吧啦蹦吧4 天前
org.apache.commons.beanutils.BeanUtils#populate
apache
java_logo5 天前
Apache IoTDB Docker 容器化部署指南:从入门到生产环境实践
docker·容器·apache·iotdb·iotdb部署教程·iotdb部署文档·docker部署iotdb