【发布时间】:2015-06-13 14:01:57
【问题描述】:
我需要在 XAMPP 中使用 Memcached,因为我需要在本地开发,而目前我看到的所有解决方案都不起作用。
Fatal error: Class 'Memcached' not found in /Applications/XAMPP/xamppfiles/htdocs/system/libraries/Session/drivers/Session_memcached_driver.php on line 108
A PHP Error was encountered
Severity: Error
Message: Class 'Memcached' not found
Filename: drivers/Session_memcached_driver.php
Line Number: 108
Backtrace:
//does not work, and actually i need this not the bottom one.
//keep in mind that the service is running, and everything was succesfully
//installed with brew
$this->_memcached = new Memcached();
//works
$this->_memcached = new Memcache;
【问题讨论】:
-
对于 OSX -> 去下载 MAMP / MAMP PRO :)
-
同样的事情...不起作用..我已经尝试过了:)
-
更改端口,无法想象还有其他事情可以搞砸 mamp ;pp
-
memcache 在 Xampp 中完美运行,但是我需要使用“Memcached”,因为我使用的框架只使用了这个,这样我可以在性能方面升级我的 APP。我已经用 brew 安装了所有东西,它很好,服务也在运行,但在 XAMPP、MAMP 或其他任何东西中都不起作用。
标签: php macos terminal memcached