![](/img/trans.png)
[英]Yii: CMemCache requires PHP memcache extension to be loaded despite having memcache/memcached installed
[英]MemCache requires PHP memcache extension to be loaded
yii上的Memcache错误迁移。
消息“ MemCache需要加载PHP memcache扩展名”的异常'yii \\ base \\ InvalidConfigException'。
在/Applications/AMPPS/www/G2G/vendor/yiisoft/yii2/caching/MemCache.php:220中
堆栈跟踪:#0 /Applications/AMPPS/www/G2G/vendor/yiisoft/yii2/caching/MemCache.php(116):yii \\ caching \\ MemCache-> getMemcache()
我在笔记本电脑上安装了memcached,在php中也安装了它。 但是仍然超过错误。 有什么理由吗?
配置
'cache' => [
'class' => 'yii\caching\MemCache',
'servers' => [
[
'host' => '127.0.0.1',
'port' => 11211
],
],
],
'cache' => [
'class' => 'yii\caching\FileCache',
],
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.