在Windows 8 – 64位上,Apache 2.4的运行速度非常慢

我在我的电脑上安装apache 2.4。 它经常运行非常慢。 Internet Explorer中的页面标题显示“等待本地主机”与加载图标! 已安装的软件:

windows 8 64bit > Apache2.4 64bit php 5 64bit MySQL 5 64bit phpMyAdmin 4 

问题不在于mySQL …当它关机时,问题依然存在。 我已经search并find解决scheme,但他们没有帮助。

  • 将“127.0.0.1 localhost”>>>添加到C:\ Windows \ System32 \ Drivers \ etc \ hosts
  • 在httpd.conf中添加“EnableMMAP on”和“EnableSendfile on”
  • 在php.in中启用并设置realpath_cache_size = 4m

任何想法?

这个问题发生在其他浏览器比Internet Explorer?

如果不是这样,它可能与针对Windows NT优化的 Apache 多处理模块有关 。 这已被命名为一个非常反应/悬挂阿帕奇的可能原因之一。

解决的办法是把这个添加到你的httpd.conf中:

 AcceptFilter http none AcceptFilter https none 

有关更多信息,请参阅关于此主题的博客文章 。

我有同样的问题,我安装了WAMP的64位版本。 我通过数据库(mySql)导出。 卸载WAMP,下载并安装32位版本。 导入我的数据库。 速度差异非常明显…你可能想要试一试。

看来,在Windows 8上的localhost dns解析存在一个问题。按照本文中的说明为我做了这个:

http://othermachines.com/blog/solving-performance-issues-windows-8-wampserver-drupal