Wamp installation memcached Best detailed tutorial ^.^: (only 3 steps required)

Source: Internet
Author: User
Tags memcached

win8.1 WAMPSERVER2.5-APACHE-2.4.9-MYSQL-5.6.17-PHP5.5.12-64B can refer to part of the explanation has a picture, I just look at 4-5 explanations, combined with an article of the final to be done!

1. Download the memcached installation package (I do not have a record, online a lot of myself to search for download.) But attention, I lost the official download for the first time, do not know whether the download is wrong or how, the download of the package is not memcached.exe, and then another under the one there, and there are x86 and x64 two kinds (indicating the computer x86 and 64 for the system))
As an administrator to open the cmd window, if you do not know the CMD can Baidu a bit, how to run as an administrator also Baidu, I was the first to run this way.
After running CMD, go to the directory where you downloaded the memcached installation package and run the following command:
e:\memcached>memcached.exe-d Install
e:\memcached>memcached.exe-d start
(Note,c:\memcached> is the path that I store memcached installation package, here but encountered a bit of difficulty, that is, I entered the corresponding directory after the direct operation will prompt is not a system command, because it seems that I CD into the corresponding directory as if the location is not in the directory I entered , but stay in the original directory location-should be the cause of the win8.1 system later without CD, Direct e: entered the e-disk directory and then directly run the above command to succeed! )
In addition, it is recommended to put the installation package in a full English path, to avoid errors under Windows.

2. After running to download the Php_memcached.dll file, this needs to be downloaded separately: http://windows.php.net/downloads/pecl/releases/memcache/3.0.8/
Explanation of the installation package with different names: Http://www.tuicool.com/articles/E3Q7Nv

3. Again to configure, add a sentence in php.ini: Extension=php_memcache.dll, Position does not seem to affect, I was added in the last. (Note that this configuration is best after running Wamp directly after the left click the icon, choose PHP Configuration in the php.ini inside add, I in the PHP installation directory after the addition of the run failed, the add to this place to run successfully! )
(Note: I so play after the desktop more than a Desktop.dll file, the default is hidden, I was because the deletion of a desktop Desktop.dll file caused the computer crashes, directly lost a lot of files, all the software settings have been reset, if you have the same situation, please note that it is recommended not to easily remove, of course I do not know if I was not because of the installation of the package for the cause of poisoning, the original seems to be installed what software after the DLL file appears, now want to, at that time should also be in the learning installation memcached, worry is the virus deleted, the result of heavy losses, the last manufacturer of the system disk reload 4 times finally good, Today I have this problem again .... Dare not delete it)
Done, go to restart the Web service, use the Phpinfo () function to view the enabled condition (there will be a display memcached)

<?php
$test =new Memcache;
$test->connect (' 127.0.0.1 ', 11211) or Die ("failure");
$s = $test->getversion ();//Do not simply $test->getversion (), if you want to display on the browser side, or need to save the output after the
echo "Memcache s version is:. $s \n\r<br>";
?>

Wamp installation memcached Best detailed tutorial ^.^: (only 3 steps required)

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.