我使用的是 Windows 7、64 位和 PHP 5.3.5。
memcache 在 phpinfo 中显示如下:
Active persistent connections: 0
Version: 2.2.5
Revision: $Revision: 1.114 $
而且我也收到连接错误 注意:Memcache::get() [memcache.get]: Server localhost (tcp 11211) failed
这就是我所做的:
1) 我安装并运行了 64 位 memcached 服务:http://s3.amazonaws.com/downloads.northscale.com/memcached-win64-1.4.4-14.zip .
2) 我将 php_memcache.dll (https://thinkam.googlecode.com/files/php_memcache-cvs-20090703-5.3-VC6-x86.zip) 复制到 php/ext。
3) 我在 php.ini 中添加了 extension = php_memcache.dll
。
4) 我重新启动了 XAMPP。
我可能会错过什么?
* 更新 *
Memcache 现在似乎正在监听端口 11211,但现在从我的应用程序中我收到以下错误:
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)
最佳答案
您必须在Windows 控制面板->管理->服务
中运行memcached server
。
关于php - 在 Windows 7 (XAMPP) 中安装内存缓存,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21029746/