[英]Class Memcached not found, PHP CodeIgniter
I started memcached service using task scheduler 我使用任务调度程序启动了memcached服务
schtasks /create /sc onstart /tn memcached /tr "'c:\memcached\memcached.exe' -m 512"
and also using 并且还使用
c:\memcached\memcached.exe -d install
c:\memcached\memcached.exe -d install
Also I included the php_memcache.dll
into /xampp/php/ext
folder and added the corresponding lines into php.ini
. 我
php_memcache.dll
包含到/xampp/php/ext
文件夹中,并将相应的行添加到php.ini
。
extension=php_memcache.dll
[Memcache]
memcache.allow_failover = 1
memcache.max_failover_attempts=20
memcache.chunk_size =8192
memcache.default_port = 11211
I tried different versions of memcache and still I am encountering the same issue of "Class Memcached not found in ...". 我尝试了不同版本的memcache,但我遇到了同样的问题“未找到类Memcached ......”。 I'm using windows 10.
我正在使用Windows 10。
Memcached
and Memcache
are two different extensions. Memcached
和Memcache
是两个不同的扩展。
Your php.ini is referencing Memcache
whilst you have installed Memcached
. 你的php.ini引用
Memcache
,而你已经安装了Memcached
。
This is a fairly common mistake in my opinion. 在我看来,这是一个相当常见的错误。 Use
Memcached
as i think Memcache
is deprecated. 使用
Memcached
因为我认为Memcache
已被弃用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.