My little brother. After installing memcached under Windows, the test appears failed reading line from stream exception

Source: Internet
Author: User
After I install memcached under Windows successfully, the test appears failed reading line from stream error
After I install memcached under Windows, the test appears failed reading line from stream error
I installed the network on a post step (http://home.phpchina.com/space.php?uid=100028&do=blog&id=183123), after installing the start service, this 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;
?>
Tips
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 in connect connection, as long as the other methods of calling the Memcache object prompt this Failed reading line from stream (0) error, ask this is what problem, how to solve? Thank you.

------Solution--------------------
Seemingly memcached did not start, the task Manager can see the memcached process?
------Solution--------------------
Not installed memcached, the following link to see if it is useful to you?
Http://xok.la/2009/10/memcached_peizhi.html
------Solution--------------------
Memcached
------Solution--------------------
I came in to study.
  • 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.