我们在LAMP上build立/维护网站,CentOS(5. *)运行Apache(2.2.17)。 我们正在考虑将Apache升级到2.2.20,我想知道是否有推荐的路线来实现这个目标? 这些都是现场,所以我们非常希望以最小的风险来做到这一点。 到目前为止,我们一直在通过yum来pipe理Centos。
干杯,
托比
如果你正在运行Apache 2.2.17版本,我不知道你从CentAlt回购安装它。 您可以使用yum-utils软件包中的repoquery程序进行检查:
# repoquery -i httpd Name : httpd Version : 2.2.15 Release : 5.el6.centos Architecture: x86_64 Size : 3057369 Packager : CentOS BuildSystem <http://bugs.centos.org> Group : System Environment/Daemons URL : http://httpd.apache.org/ Repository : base Summary : Apache HTTP Server Description : The Apache HTTP Server is a powerful, efficient, and extensible web server.
如果是这样,你可以从这个回购升级Apache到最新版本(2.2.20):
# yum update httpd
validationApache版本并重新启动httpd:
# httpd -v Server version: Apache/2.2.20 (Unix) Server built: Aug 31 2011 14:48:47 # service httpd restart
看看错误日志,以确认他们工作正常。
PS: 我强烈build议你先在testing服务器上做。