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

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

问题描述

我的 Windows PC (localhost) 正在运行 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.

有什么想法吗?

推荐答案

这里有一个 真正适合我的解决方案.

尝试将 apache/conf/httpd.conf 中的以下两个条目从 OFF 更改为 ON:

One thing to try is changing the following two entries in apache/conf/httpd.conf from OFF to ON:

EnableMMAP on
EnableSendfile on

另外,启用 realpath_cache_size= 4m 并将其设置为您的 php.ini 文件.

Also, enable and set realpath_cache_size= 4m to your php.ini file.

如果您使用 InnoDB 数据库,请在 my.ini 中启用和设置:

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

innodb_flush_log_at_trx_commit = 2

最后,它似乎对某些人有用:通过添加来编辑您的主机(C:WindowsSystem32driversetchosts)

Finally, it seems it worked for some people: edit your host (C:WindowsSystem32driversetchosts) by adding

127.0.0.1 localhost
127.0.0.1 127.0.0.1

并发表评论:

# ::1 localhost

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

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