memcache for php - unable to connect
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I m running centos 6. Using apache for handling php and nginx to handle scripts images and css i have installed memcached server. PORT = "11211" USER = "memcached" MAXCONN = "4096" CACHESIZE = "512" OPTIONS = "-l 127.0.0.1" i have also installed the module for php. i created a new php file $memcache = new Memcache ; $memcache -> connect ( '127.0.0.1' , 11211 ) or die ( "Could not connect" ); i checked the memcached status and it is running. I am always getting "Could not connect". I tried to change the value to 'localhost' from