Wamp install Memcached

Source: Internet
Author: User
: This article describes how to install Memcached using wamp. For more information about PHP tutorials, see. My wamp version information:

WampServer Version 2.2, Apache Version 2.2.22, PHP Version 5.3.13, MySQL Version 5.5.24

Procedure:

1. download memcached for windows and install it on your computer. installation process:

① Decompress the EXE file to the edisk (or elsewhere) and run the command: memcached.exe-d install on the edisk

② Run: memcached.exe-d start to start the service. The service can be found on the windows service of the machine. memcached is started by default and can be changed to manual start.

2. download php_memcached.dll

The most important thing is that php_memcached.dll must correspond to the php version on your machine. If it does not match, memcached loading will fail. After the dll file is downloaded successfully, put php_memcache.dll in the php ext Directory, download the dll address: click to open the link, in fact, in the PHP Manual over: https://php.net/search Memcache, enter

  • Installation, you can also find the corresponding download link
  • 3. configure memcached extension for php

    Add extension = php_memcache.dll to the php. ini file. if the file already contains this sentence, remove the semicolon before extension.

    4. restart all wamp services

    5. The following is the test code.

      connect("127.0.0.1", 11211);$mem->set('key', 'Hello Memcached!', 0, 60);$val = $mem->get('key');echo $val;

    6. The Memcached installation file and dll file I used: http://pan.baidu.com/s/1pJiJ0LH

    The above describes how to install Memcached with wamp, including some content. I hope that some friends who are interested in PHP tutorials can help me.

    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.