How to install memcached under Wamp

Source: Internet
Author: User
Tags execution memcached mysql version thread vc9 win32 zip visual studio

The most recent project is to use Memcache, so to install locally, there are some problems in the installation process, recorded here.

I am using the Wamp integration environment with the following versions:

Wampserver Version 2.2

Apache Version 2.2.21

PHP Version 5.3.10

MySQL Version 5.5.20

The installation steps are as follows:

1. Installation of memcached service

First download a memcached for Windows (this can be found on the internet, a lot), extract it into a directory c:\memcached.

Start Cmd.exe (Win7 and win8 under the admin status because of permissions issues, must be started as an administrator, or the memcached service will prompt installation failure), into the c:\memcached directory. The installation commands are as follows:

C:\USERSADMINISTRATOR>CD C:\memcached

c:\memcached>memcached.exe-d Install

c:\memcached>memcached.exe-d start

In this way, the memcached service is installed into the Windows service, and will be randomly started, if you do not want to start randomly, you can modify in the "Management Service" (the above steps should be understood).

2. Download Php_memcached.dll

This php_memcached.dll is not the PHP environment itself. This requires everyone to download themselves on the Internet.

It is important to note that Php_memcached.dll must correspond to the PHP version on its own machine. If this does not correspond, the memcached loading is unsuccessful. DLL file after the successful download, the Php_memcache.dll will be placed in the PHP ext directory.

The general problem will be out here, a lot of people can not find PHP corresponding DLL library, here give the download address http://downloads.php.net/pierre/.

It should be noted that you may see the following to php5.3 version, Win32 for example:

Php_memcache-2.2.6-5.3-nts-vc9-x86.zip

Php_memcache-2.2.6-5.3-vc9-x86.zip

Php_memcache-5.3-win32-vc6-x86-20090408.zip

Php_memcache-5.3-nts-win32-vc6-x86-20090408.zip

The difference between them is:

VC6 is Legacy Visual Studio 6 compiler, which is compiled using this compiler.

VC9 is the Visual Studio 2008 compiler, which is compiled with the Microsoft vs Editor.

Thread safe is threaded, and thread security checks are performed to prevent new requirements from running out of system resources in the form of CGI execution that starts a new thread.

Non thread safety is not thread safe and does not carry out thread security checks at execution time.

You can view the PHP information through phpinfo to determine whether to choose VC6 or Vc9,ts or NTS.

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.