2013-01-18 40 views
0

我在rackspace雲網站上運行php應用程序(Yii)。我在運行的rackspace雲服務器上安裝了一個memcached服務器。這個問題,我無法訪問memcache。我收到以下錯誤在雲網站中的PHP應用程序無法訪問在雲服務器上運行的memcached - rackspace

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), 
     ), 
    ), 

緩存配置如何使它工作?

回答

1

你有沒有試過通過iptables打開端口11211?我不知道你正在使用的分佈,但這裏有幾個教程:

而且,由於你是Rackspace公司,你可能會能夠達到一位可以通過即時聊天提供幫助的工程師。我一直髮現它們非常有用!

+0

感謝您的回覆。我安裝了centOS 6發行版。我會通過鏈接回到你身邊。我曾與支持團隊聊天,但解決方案沒有幫助。 – Suriya

相關問題