Install memcached in the wamp environment

Source: Internet
Author: User
: This article describes how to install memcached in the wamp environment. if you are interested in the PHP Tutorial, refer to it. 1. to download the memcache installation package, select the Windows environment installation package.

2. decompress the package and place it on the D drive (take D:/memcached as an example)

3. click Start = run = and enter cmd to enter the dos interface.

4. enter d: Enter the d drive, and enter the cd memcached command to enter the memcached folder.


5. enter memcache.exe-d install Command installation, and input memcache.exe-d start to start the memcached process. Stop command: memcached.exe-d stop, uninstall command: memcached.exe-d unistall

6. go to the task manager and check the process. If yes, the installation is successful:

7. download the php_memcache.dll extension file and put it in the bin \ php \ php5.5.12 \ ext directory under the wamp installation directory.

8. open php. ini and add extension = php_memcache.dll. Note that there is no semicolon before. save and restart the service.

9. create a locally created Project memcached and add the index. php execution file. enter the following code:

 Connect ("127.0.0.1", 11211); // value $ memcache-> add ('name', 'feige ', false, 60 ); // get the value $ val = $ memcache-> get ('name'); echo $ val;?>
If the call succeeds, the feige is output.

Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

The above describes how to install memcached in the wamp environment, including some content. I hope my friends who are interested in the PHP Tutorial 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.