在Windows 7(XAMPP)中安装memcache

luq*_*ita 7 php windows apache xampp memcached

我使用的是Windows 7,64位和PHP 5.3.5.

memcache在phpinfo中显示如下:

Active persistent connections: 0
Version: 2.2.5
Revision: $Revision: 1.114 $ 
Run Code Online (Sandbox Code Playgroud)

而且我也遇到了连接错误 Notice: 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)我extension = php_memcache.dll在php.ini中添加了.

4)我重启了XAMPP.

我能错过什么?

*更新*

Memcache现在似乎正在侦听端口11211,但现在从我的应用程序中我收到以下错误:

注意:Memcache :: get()[memcache.get]:服务器127.0.0.1(tcp 11211)失败:连接尝试失败,因为连接方在一段时间后没有正确响应,或者由于连接主机而建立连接失败未能回应.(10060)

voo*_*417 3

memcached server您必须在 Windows 中 运行Control Panel->Administration->Services