[英]Wamp PHP very slow on windows 10
When I try to load simple html page everything works fast.当我尝试加载简单的 html 页面时,一切都很快。 Yet when i write a simple php connect command to connect to mysql database, takes about 15-25 seconds to retrieve an answer if the connection was successful or not.
然而,当我编写一个简单的 php connect 命令来连接到 mysql 数据库时,如果连接成功与否,大约需要 15-25 秒来检索答案。 I am not even talking about the time it takes to retrieve more difficult data :) I have already tried all the solutions in:
我什至不是在谈论检索更困难的数据所需的时间:) 我已经尝试了以下所有解决方案:
https://ineed.coffee/1441/apache-php-mysql-slow-under-windows-8-how-to-fix/ https://ineed.coffee/1441/apache-php-mysql-slow-under-windows-8-how-to-fix/
Yet it didn't help.然而它没有帮助。 No improvement in loading speed at all.
加载速度根本没有提高。 I noticed that my httpd.conf file has these lines:
我注意到我的 httpd.conf 文件有以下几行:
#Listen 12.34.56.78:80
Listen 0.0.0.0:80
Listen [::0]:80
Yet I don't know if it has any influence or not, just guessing :D As you probably understood I am new with this wamp thing, and have not a slightest idea how can I fix it.但是我不知道它是否有任何影响,只是猜测:D 正如您可能理解的那样,我是这个 wamp 东西的新手,并且不知道如何修复它。 So my only chance are you guys :)
所以我唯一的机会是你们:)
comment the line of ipv6 on the hosts file.在 hosts 文件中注释 ipv6 行。 It is in C:\\Windows\\System32\\drivers\\etc\\hosts
它位于 C:\\Windows\\System32\\drivers\\etc\\hosts
You should edit like administrator.你应该像管理员一样编辑。 C:\\Windows\\System32\\drivers\\etc
C:\\Windows\\System32\\drivers\\etc
127.0.0.1 localhost
# ::1 localhost
Grettings!问候!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.