在Windows 7安装内存缓存(XAMPP) [英] Installing memcache in Windows 7 (XAMPP)
问题描述
我使用的是Windows 7中,64位,和PHP 5.3.5。
内存缓存是显示,因为这在的phpinfo:
活动持续连接:0
版本:2.2.5
修订:$修订:1.114 $
而我也越来越连接错误注意:内存缓存::得到()[memcache.get]:服务器localhost(TCP 11211)失败
这是我做过什么:
1)我安装并运行64位的memcached服务:<一href=\"http://s3.amazonaws.com/downloads.northscale.com/memcached-win64-1.4.4-14.zip\">http://s3.amazonaws.com/downloads.northscale.com/memcached-win64-1.4.4-14.zip.
2)我复制php_memcache.dll(<一个href=\"https://thinkam.google$c$c.com/files/php_memcache-cvs-20090703-5.3-VC6-x86.zip\">https://thinkam.google$c$c.com/files/php_memcache-cvs-20090703-5.3-VC6-x86.zip)到PHP /分机。
3)我加入扩展= php_memcache.dll
在php.ini中。
4)我重新启动XAMPP。
我能怎么会丢失?
*更新*
内存缓存似乎在11211端口监听,现在,现在从我的应用程序,我得到以下错误:
注意:内存缓存::得到()[memcache.get]:服务器127.0.0.1(TCP 11211)
失败:连接尝试失败,因为连接的方
一段时间后,没有正确响应或已建立
连接失败,因为连接的主机没有反应。
(10060)
块引用>解决方案您必须运行
。memcached服务器
在Windows控制面板 - &GT;管理 - &GT;服务
I'm using Windows 7, 64 bits, and PHP 5.3.5.
memcache is showing as this in phpinfo:
Active persistent connections: 0 Version: 2.2.5 Revision: $Revision: 1.114 $
And I'm also getting a connection error
Notice: Memcache::get() [memcache.get]: Server localhost (tcp 11211) failed
This is what I did:
1) I installed and ran the 64 bit memcached service: http://s3.amazonaws.com/downloads.northscale.com/memcached-win64-1.4.4-14.zip.
2) I copied php_memcache.dll (https://thinkam.googlecode.com/files/php_memcache-cvs-20090703-5.3-VC6-x86.zip) into php/ext.
3) I added
extension = php_memcache.dll
in php.ini.4) I restarted XAMPP.
What could I be missing?
* Update *
Memcache seems to be listening now on port 11211, but now from my application I get the following error:
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)
解决方案You must run
memcached server
in WindowsControl Panel->Administration->Services
.这篇关于在Windows 7安装内存缓存(XAMPP)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!