Home  >  Article  >  Backend Development  >  小弟我在Windows下安装Memcached成功之后,测试出现Failed reading line from stream异常

小弟我在Windows下安装Memcached成功之后,测试出现Failed reading line from stream异常

WBOY
WBOYOriginal
2016-06-13 13:52:391227browse

我在Windows下安装Memcached成功之后,测试出现Failed reading line from stream错误
我在Windows下安装Memcached成功之后,测试出现Failed reading line from stream的错误
我安装网络上一帖子步骤(http://home.phpchina.com/space.php?uid=100028&do=blog&id=183123),安装启动服务之后,这样测试:
$mem = new Memcache;
$mem->connect(”127.0.0.1″, 11211);
$mem->set(’key’, ‘This is a test!’, 0, 60);
$val = $mem->get(’key’);
echo $val;
?>
提示
Notice: Memcache::set() [memcache.set]: Server 127.0.0.1 (tcp 11211) failed with: Failed reading line from stream (0) 
可我在connect连接时都没什么问题,只要调用Memcache对象的其他方法都提示这个 Failed reading line from stream (0)错误,请教这个是什么问题,如何解决?谢谢。

------解决方案--------------------
貌似memcached没有启动,任务管理器里面看得见memcached进程么?
------解决方案--------------------
没有安装过memcached, 下面这个链接看一下,对你是否有用?
http://xok.la/2009/10/memcached_peizhi.html
------解决方案--------------------
Memcached
------解决方案--------------------
我是进来学习的。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn