XAMPP / WAMP /不管它是什么:Apache是​​运行超慢 [英] XAMPP / WAMP / whatever it is: Apache is running super slow

查看:268
本文介绍了XAMPP / WAMP /不管它是什么:Apache是​​运行超慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我的Windows PC(本地主机)上运行XAMPP。它加载的网页有时真的很快,有时很慢。

I've got my Windows PC (localhost) running XAMPP. It loads the pages sometimes really quick or sometimes really slow.

所以,我想通搜查并被推荐获得WAMP。我得到的并安装它。尽管如此,网页加载如此该死缓慢。没有沉重的CPU负载或任何东西,我的所有端口都开放了。

So, I figured and searched and was recommended to get WAMP. I got that and installed it. Still, the pages load so damn slowly. No heavy CPU load or anything, all my ports are open too.

任何想法?

推荐答案

下面是真的为我工作一个解决方案。

Here's a solution that really worked for me.

一件事,试图从更改以下两个项目在的apache / conf目录/ httpd.conf文件关闭 ON

EnableMMAP on
EnableSendfile on

此外,启用和设置 realpath_cache_size =4米你的的php.ini 文件。

如果你正使用InnoDB数据库还启用和设置的my.ini

If your are using InnoDB database also enable and set in my.ini:

innodb_flush_log_at_trx_commit = 2

最后,似乎它的工作对某些人来说:编辑您的主机( C:\\ WINDOWS \\ SYSTEM32 \\ DRIVERS \\ ETC \\主机)加入

127.0.0.1 localhost
127.0.0.1 127.0.0.1

和评论:

\# ::1 localhost

这篇关于XAMPP / WAMP /不管它是什么:Apache是​​运行超慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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