我使用Windows 7,64位和PHP 5.3.5。在Windows 7(XAMPP)中安裝Memcache
內存緩存中顯示,因爲這在的phpinfo:
Active persistent connections: 0
Version: 2.2.5
Revision: $Revision: 1.114 $
而且我也得到一個連接錯誤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)我在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)
對於不同的PHP版本,你可以從這裏 http://windows.php.net/downloads/pecl/releases/memcache/3.0.8/ – Gigala
@Gigala感謝另一個php_memchace.dll很多你節省了我的一天 – Pavel