我在 rackspace 云站点中运行一个 php 应用程序(Yii)。我已经在运行的 rackspace 云服务器上安装了一个 memcached 服务器。问题,我无法访问内存缓存。我收到以下错误
Memcache::get() [<a href='memcache.get'>memcache.get</a>]: Server xx.xx.xxx.xxx (tcp 11211) failed with: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
(10060)
netstat -an | grep ":11211"
tcp 0 0 0.0.0.0:11211 0.0.0.0:* LISTEN
tcp 0 0 :::11211 :::* LISTEN
udp 0 0 0.0.0.0:11211 0.0.0.0:*
udp 0 0 :::11211 :::*
请在以下位置找到缓存配置main.php
'cache'=>array(
'class'=>'system.caching.CMemCache',
'servers'=>array(
array('host'=>' xx.xx.xxx.xxx', 'port'=>11211, 'weight'=>60),
),
),
如何让它发挥作用?