我正在尝试按照他们的建议连接到内存缓存:
$memcache = new Memcache();
$memcache->pconnect('localhost',11211);
但我得到:
Notice: Memcache::pconnect() [memcache.pconnect]: Server localhost (tcp 11211) failed with: Connection refused (111) in /home/user/public_html/website.com/includes/basedatos.php on line 26
知道为什么吗?