Centos7下Httpd最新版本安装

简介: Centos7下Httpd最新版本安装

查找Centos上软件库里的httpd版本:

yum info httpd


已加载插件:fastestmirror

Loading mirror speeds from cached hostfile

* epel: epel.mirror.angkasa.id

* remi-php72: fr2.rpmfind.net

* remi-safe: fr2.rpmfind.net

已安装的软件包

名称    :httpd

架构    :x86_64

版本    :2.4.6

发布    :97.el7.centos.2

大小    :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.


默认软件库中只有2.4.6版本的apache。


CodeIT这个库提供了最新版本的服务器软件(Apache & Nginx)。这个库依赖 EPEL 。首先要安装 epel-release


sudo yum install -y epel-release


然后安装CodeIT库:


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


或者访问:https://repo.codeit.guru/

访问:https://repo.codeit.guru/codeit.el7.repo


在 /etc/yum.repos.d目录下新建 codeit.el7.repo ,内容如下:


[CodeIT]

name=CodeIT repo

baseurl=https://repo.codeit.guru/packages/centos/7/$basearch

enabled=1

gpgkey=https://repo.codeit.guru/RPM-GPG-KEY-codeit

gpgcheck=1


运行更新,

httpd版本信息如下:

yum info httpd

已加载插件:fastestmirror

Loading mirror speeds from cached hostfile

* epel: epel.mirror.angkasa.id

* remi-php72: fr2.rpmfind.net

* remi-safe: fr2.rpmfind.net

已安装的软件包

名称    :httpd

架构    :x86_64

版本    :2.4.51

发布    :1.codeit.el7

大小    :4.3 M

源    :installed

来自源:CodeIT

简介    :Apache HTTP Server

网址    :https://httpd.apache.org/

协议    :ASL 2.0

描述    :The Apache HTTP Server is a powerful, efficient, and extensible

        : web server.



运行 yum install httpd 即可安装更新httpd到最新版本

目录
相关文章
|
22天前
|
消息中间件 Linux API
centos7 安装rabbitmq自定义版本及配置
centos7 安装rabbitmq自定义版本及配置
|
20天前
|
弹性计算 关系型数据库 MySQL
centos7 mysql安装及配置
本文详细介绍了在阿里云服务器ECS上通过yum源安装MySQL 8.0.12的过程,包括更新yum源、下载并安装MySQL源、解决安装过程中可能遇到的问题等步骤。此外,还介绍了如何启动MySQL服务、设置开机自启、配置登录密码、添加远程登录用户以及处理远程连接异常等问题。适合初学者参考,帮助快速搭建MySQL环境。
107 8
centos7 mysql安装及配置
|
17天前
|
存储 Linux Docker
CentOS 7.6安装Docker实战案例及存储引擎和服务进程简介
关于如何在CentOS 7.6上安装Docker、介绍Docker存储引擎以及服务进程关系的实战案例。
62 3
CentOS 7.6安装Docker实战案例及存储引擎和服务进程简介
|
22天前
|
分布式计算 资源调度 Hadoop
centos7二进制安装Hadoop3
centos7二进制安装Hadoop3
|
22天前
|
Linux Python
Centos7安装Python虚拟环境之virtualenv
Centos7安装Python虚拟环境之virtualenv
|
22天前
|
存储 缓存 Linux
LDAP学习笔记之一:Centos7安装389-DS(RHDS)
LDAP学习笔记之一:Centos7安装389-DS(RHDS)
|
23天前
|
前端开发 小程序 Unix
Centos安装前端开发常用软件
Centos安装前端开发常用软件
|
Linux
升级CentOS到最新版本
升级CentOS到最新版本
407 0
|
Linux
[Ansible] 升级 CentOS 到指定版本
今天接到一个需求,需要把一些 7.4 版本的 CentOS 升到 7.5 而不是 7.6。查了一下手动升级的方案,然后写成 ansible playbook。做个记录。 - hosts: all become: yes serial: - 1 - 33% vars: upgrade_to: "7.
2135 0
|
29天前
|
安全 关系型数据库 MySQL
Linux(CentOS6)安装MySQL5.6
Linux(CentOS 6)系统上安装MySQL 5.6版本的详细步骤,包括准备数据存放目录、创建用户、下载安装包、初始化数据库、配置服务脚本、设置环境变量等操作。
93 1