【发布时间】:2013-02-07 15:18:22
【问题描述】:
我认为 Windows 8 中没有安装 Memcache。我想下面的警告清楚地说明了这一点:
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。
【问题讨论】:
-
你有没有尝试在端口上建立连接,看看是否被防火墙阻止了?
-
安装 PHP 内存缓存扩展,不会自动安装内存缓存服务器...
-
@user20232359723568423357842364 我尝试使用以下方式连接:$test3 = @memcache_connect('127.0.0.1',11211);但得到了提到的错误。
-
@Leigh 当我尝试使用
memcached -d install命令安装时,我收到以下消息:failed to install service or service already installed -
查看 GKK 提供的答案 -
telnet 127.0.0.1 11211- 如果您的盒子上没有 telnet,请按照以下说明操作 itworld.com/software/227783/enable-telnet-windows-8