WAMP / XAMPP是响应本地主机上很慢 [英] WAMP/XAMPP is responding very slow over localhost

查看:3634
本文介绍了WAMP / XAMPP是响应本地主机上很慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道是什么问题。 WAMP是非常缓慢的,所以我重新格式化我的电脑并安装WAMP。尽管如此,访问本地主机是非常,非常缓慢,有时它甚至不加载所有。我甚至删除,并与XAMPP代替它,但我仍然得到了同样的结果。什么有可能会是什么问题?这是我目前的hosts文件:

I don't know what the problem is. WAMP was very slow, so I reformatted my computer and installed WAMP. Still, accessing localhost is very, very slow, and sometimes it doesn't even load at all. I even removed it and replaced it with XAMPP, but I still got the same result. What might possibly be the problem? Here's my current hosts file:

127.0.0.1       localhost

127.0.0.1       localhost

这是完全工作正常过,但我不知道发生了什么,以及为什么它已经开始采取行动奇怪最近,因为即使重新格式化并没有解决它。

It was perfectly working fine before, but I do not know what happened and why it has started acting strange lately, since even a reformat didn't fix it.

推荐答案

我已经在Windows 8上运行64位运行同样的问题。 Apache是​​很慢的,但是当你preSS F5很多时候去确定。最后,我做很多事情后,设法解决它。现在,它的工作原理快。

I had the same problem running on Windows 8 running on 64bit. Apache is really slow but when you press F5 many times it goes ok. In the end i after doing many things managed to solve it. Right now it works fast.

请尝试以下任务,以提高性能:

Try the following tasks to increase the performance:

更改聆听从80到8080的端口,以避免与Skype等程序发生冲突。打开你的httpd.conf文件并找到以开头的行收听(它是围绕62行)。更改如下所示:
听127.0.0.1:8080

Change listening port from 80 to 8080 to avoid conflicts with programs like Skype. Open your httpd.conf file and find the line that starts with Listen (it's around line 62). Change it like the following: Listen 127.0.0.1:8080

从改变你的平衡电源计划到高性能。你可以做到这一点控制面板\\所有控制面板项\\电源选项

Change your power plan from Balanced to High Performance. You can do this in Control Panel\All Control Panel Items\Power Options

这个特殊的任务的学分转到杰夫他在他的blog帖子。从Windows 8桌面,preSS的 Windows键 R键同时

The credits of this particular task go to Jef where he pointed this out in his blog post. From the Windows 8 desktop, press the Windows Key and the R key at the same time

键入regedit在运行对话框,然后单击确定

Type regedit in the Run dialog box and click OK

使用注册表编辑器展开注册表树并浏览到:

Use Registry Editor to expand the registry tree and browse to:

\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TCPIP6\Parameters

参数,展开,然后选择 DWORD(32位右键)

输入 DisabledComponents 名称字段

在新的 DisabledComponents 值,双击,输入 FFFFFFFF 数值数据对话框,然后单击确定按钮

Double click on the new DisabledComponents value, enter ffffffff into the Value data dialog box, and click the OK button

确认新的注册表值包含所需的数据。

Confirm the new registry value contains the required data.

如果您使用虚拟主机不上添加一个新行每个虚拟主机。相反,列出它们像下面这样。

127.0.0.1站点一个站点B位-C

If you use virtual hosts don't add each virtual host on a new line. Instead list them like the following. 127.0.0.1 site-a site-b site-c

我还添加了 127.0.0.1 127.0.0.1 ,因为我听到这会提升查找也是如此。 (无法证实这一点,但它不能伤害它放在那里)

I also added 127.0.0.1 127.0.0.1 since I heard this somehow improves the lookup as well. (Can't confirm this but it can't hurt putting it there)

您hosts文件位于 C:\\ WINDOWS \\ SYSTEM32 \\ drivers \\ etc下

Your hosts file is located at C:\Windows\System32\Drivers\etc

在我来说,我已经运行两个Apache进程。请确保你只有一个运行。您可以通过pressing CTRL + ALT + DEL 和preSS检查这个任务管理器

In my case I had two apache processes running. Be sure you only have one running. You can check this by pressing CTRL+ALT+DEL and press Task Manager

我发现了什么是工作有点,以及被关闭基本筛选引擎。由于停止或禁用BFE服务将显著降低系统在需要的时候,你应该只能这样做的安全性。

What I find to be working a bit as well was turning off the Base Filtering Engine. Since stopping or disabling the BFE service will significantly reduce the security of the system you should only do this when needed.

转至控制面板=>管理工具=>服务=>基本筛选引擎

Go to Control Panel => Administrative Tools => Services => Base Filtering Engine

点击停止基本筛选引擎的停止

Stop the Base Filtering Engine by clicking on Stop

要你的任务管理器和Apache的进程优先级从正常到高按右键点击更改 - >设置优先级 - >高

To to your task manager and change Apache's process priority from Normal to High by right clicking -> Set priority -> High

这是一个有点丑陋的方法,但它确实工作。它使Apache的忙,将处理自己的要求更快。在iframe位置插入本地的Web地址并将其保存在一个HTML文件,运行它,就这么走了,直到大功告成。

This is a bit of an ugly method but it does certainly work. It keeps Apache busy and will process your own requests faster. Insert your local web-address in the iframe location and save it in a html file, run it and just leave it there until you're done.

<html>
    <head>

<script>
setTimeout(function(){
   window.location.reload(1);
}, 2000);

</script>

</head>
<body>
<iframe name="iframe" id="iframe" src="http://mywebsite:8080"></iframe> 


</body>
</html>

降级到Windows 7专业版

作为Windows 8 Pro的用户,您有权降级权利到Windows 7。读到这里更多关于这一点。对我来说,这是真正正确地做了工作的唯一解决方案。

Downgrade to Windows 7 Pro

As a Windows 8 Pro user you are entitled to have downgrade rights to Windows 7. Read here more about this. For me that was the only solution that really did the job properly.

祝你好运!

这篇关于WAMP / XAMPP是响应本地主机上很慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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