When Memcached is successfully installed in Windows, the Failedreadinglinefromstream exception occurs.

Source: Internet
Author: User
After Memcached is successfully installed in Windows, the Failedreadinglinefromstream error occurs. after Memcached is successfully installed in Windows, the Failedreadinglinefromstream is successfully installed in Windows, failed reading line from stream error
After successfully installing Memcached in Windows, the error "Failed reading line from stream" occurs.
I install a post on the network step (http://home.phpchina.com/space.php? Uid = 100028 & do = blog & id = 183123). after the service is installed and started, perform the following test:
<? Php
$ 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;
?>
Prompt
Notice: Memcache: set () [memcache. set]: Server 127.0.0.1 (tcp 11211) failed with: Failed reading line from stream (0)
But I have no problem when connecting to connect. as long as other methods of calling the Memcache object prompt this Failed reading line from stream (0) error, ask what the problem is and how to solve it? Thank you.

------ Solution --------------------
It seems that memcached is not started. can you see the memcached process in the task manager?
------ Solution --------------------
Memcached has not been installed. can this link be used for you?
Http://xok.la/2009/10/memcached_peizhi.html
------ Solution --------------------
Memcached
------ Solution --------------------
I came in to learn.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.