我已经通过运行sudo apt-get install php-memcached和<?php phpinfo(); ?>安装了memcached,结果如下:

但是我的Yii项目仍然有这个错误:

我在nginx服务器上运行它。
发布于 2019-02-01 06:12:28
memcache和memcached是两个独立的扩展。您需要将useMemcached设置为true才能使用memcached
'cache' => [
'class' => 'CMemCache',
'useMemcached' => true,
],或者安装memcache扩展:
sudo apt install php-memcachehttps://stackoverflow.com/questions/54468723
复制相似问题