在CentOS 6使用的httpd 2.4,而不是2.2 [英] Using httpd 2.4 instead of 2.2 on centos 6

查看:332
本文介绍了在CentOS 6使用的httpd 2.4,而不是2.2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用Centos的6.5,我已经被百胜安装了Apache 2.2我的服务器上,我想我的Apache升级到2.4,但百胜不支持,所以我下载Apache 2.4.7并安装它来选择/阿帕奇/的httpd-2.4.7按照教程这里:<一href=\"http://stackoverflow.com/questions/20112355/apache-2-4-x-manual-install-on-rhel-6-4-no-apache-modules-will-load-on-start\">Apache 2.4.x的手动安装在RHEL 6.4 - 没有Apache模块将启动加载。我想换个环境变量,新的Apache的版本写的Apache 2.4模块(包括改变文件夹的头文件,更改模块文件夹时,构建与APXS,...)。我想我必须安装其他的httpd-DEVEL为Apache 2.4.7,因为我还没有安装的httpd-DEVEL-2.4.7,但我不知道如何安装和百胜用它代替的httpd-DEVEL-2.2。我不能清楚地描述自己的问题在英语,所以我希望你能理解。我是一个新手,我真的需要你的帮助。谢谢!

I use Centos 6.5, I've installed apache 2.2 on my server by yum, I want to upgrade my apache to 2.4, but yum not support that, so I download apache 2.4.7 and install it to opt/apache/httpd-2.4.7 follow the tutorial here: Apache 2.4.x Manual install on RHEL 6.4 - No apache modules will load on start . I want to change environment variables to new apache version to write apache 2.4 modules (change include folder for header file, change "modules" folder when build with apxs,...). I think I must install another httpd-devel for apache 2.4.7, because I still not install httpd-devel-2.4.7, but I don't know how to install and use it instead of httpd-devel-2.2 by yum. I can not describe my problems clearly in English, so I hope you can understand it. I'm a newbie and I really need your help. Thank you!

推荐答案

CentOS是RHEL,它代表的红帽企业Linux的形象。 RHEL的设计是一个企业级的操作系统,在其中依赖于从他们只为企业级应用正在全面测试后,可用来控制仓库提供的软件包。

CentOS is image of RHEL, which stands for Red Hat Enterprise Linux. RHEL is designed to be an "Enterprise class" operating system, in which you rely on software packages that are delivered from controlled repositories where they are made available only after being thoroughly tested for Enterprise level use.

从这个角度来看,它通常不是一个好主意,从源头code安装软件包,或者使用第三方RPM的,因为一旦你这样做,你的操作系统不再是企业级。

From that point of view, its generally not a good idea to install packages from source code, or using third party RPMs, because once you do, your OS is no longer "Enterprise" class.

如果你想为安全起见升级,你不应该。关键安全更新程序总是在向后移植previous RPM版本,所以你只需要在那里您有它第一次相同的yum软件库更新当前的包。二进制仍然会说,这是Apache 2.2的,但它会具有最新的安全更新。

If you're trying to upgrade for security reasons, you shouldn't. Critical security updates are always backported in previous RPM releases, so you only have to update your current package from the same yum repo from where you got it first. The binary will still say it is Apache 2.2, but it will have the latest security updates.

如果你需要2.4的实际特点,聪明的做法是升级你的CentOS。它可能看起来像最初较硬的选项,但它永远不会是从长远来看。

If you need an actual feature of 2.4, the smart move is to upgrade your CentOS. It may seem like the harder option initially, but it never is in the long run.

这篇关于在CentOS 6使用的httpd 2.4,而不是2.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆