我认为Memcache尚未安装在Windows 8中。我想以下警告清楚地说明了这一点:

 Notice: Memcache::get() [memcache.get]: Server 127.0.0.1 (tcp 11211) failed with: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (10060) in C:\xampp\htdocs\framework\registry\cache.class.php on line 39


在phpinfo()中,我可以看到它已安装:


是否有任何解决方法可以使其启动并运行?
在命令提示符下,我尝试如下安装memcache:

memcached -d install


但出现以下错误:

failed to install service or service already installed


我已经在Windows XP中安装了Memcache。

最佳答案

很有趣! ;)
我以管理员身份运行了CMD(以管理员身份运行),瞧,问题解决了!

关于php - Windows 8中的Memcache安装:无法连接到127.0.0.1,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/14754581/

10-13 05:51