2014-01-27 160 views

回答

0

这通常意味着您的DNS resolution无法正常工作。 PHP无法获取Memcache函数中使用的主机名的IP地址。

您的选项

  • 检查/修复了DNS的查找,可以正确地完成。
  • 更改您的代码,而不是use ip-addresses主机名

的例子

Memcache::connect("1.2.3.4");   // replace with correct ip 
Memcache::getServerStatus("1.2.3.4"); // --- '' --- 
// etc other functions using hostname