Windows Server 上 PHP 的 Memcached 扩展

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1248066/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 12:57:51  来源:igfitidea点击:

Memcached extension for PHP on Windows Server

phpwindowsmemcached

提问by

Windows 2008 IIS 7 PHP 5.2.10 / FastCGI Memcache as a Windows Service I tried to use the php_memcache extension for PHP but it doesn't load. This extension comes with PECL 5.2.6

Windows 2008 IIS 7 PHP 5.2.10 / FastCGI Memcache 作为 Windows 服务 我尝试使用 PHP 的 php_memcache 扩展,但它没有加载。此扩展随 PECL 5.2.6 一起提供

Any idea? Do you know if exist a php_memcache"d" extension for PHP on Windows?

任何的想法?您知道 Windows 上是否存在 PHP 的 php_memcache"d" 扩展名吗?

BR Santiago

BR圣地亚哥

回答by Mark White

Wbdvlpr - you've missed the emphasis the original poster put on the fact they are looking for php_memcached.dll, not php_memcache.dll

Wbdvlpr - 你已经错过了原始海报强调他们正在寻找 php_memcached.dll 而不是 php_memcache.dll 的事实

Web searches for php_memcached.dll mostly do seem to lead to php_memcache.dll.

对 php_memcached.dll 的 Web 搜索似乎大多会导致 php_memcache.dll。

回答by Aleksandar Pavi?

I've just downloaded memcached from http://splinedancer.com/memcached-win32/

我刚刚从http://splinedancer.com/memcached-win32/下载了 memcached

and started it like memcached.exe -d install

并像 memcached.exe -d install 一样启动它

then took the php_memcache.dll vc9 version from downloads.php.net/pierre/ not the vts one

然后从 downloads.php.net/pierre/ 获取 php_memcache.dll vc9 版本,而不是 vts 版本

unpacked to php's extension folder,

解压到php的扩展文件夹,

restarted apache, and made sure with phpinfo() that it works.

重新启动 apache,并使用 phpinfo() 确保它可以工作。