First, the installation of memcache software:
1, download memcache version of Windows, put Memcached.exe in F: drive letter, (Memcached.exe file location is not variable).
2, enter the cmd command terminal, enter to F: drive letter.
3, memcached.exe-d Install command for memcache installation.
4, memcached.exe-d Start command to start automatically memcache boot.
5, the Software installation is complete.
Second, the PHP extension configuration:
1, download php_memcache.dll extension file; http://downloads.php.net/pierre/
2. Copy the Php_memcache.dll file to the Php/ext directory.
3. In the PHP.ini configuration file (add OR Open) Extension=php_memcache.dll
4, restart the Apache server, view phpinfo, if memcache exists, it means that the installation is successful.
Third, test:
1. Open the Computer Management service to see if the Memcache has been started (yes) and whether it is self-booting (yes).
2, create the test file memcache.php under WWW.
1<?PHP2 $memcache=NewMemcache;3 $memcache->connect (' 127.0.0.1 ', 11211);4 $memcache->set (' key ', ' Memcache Connection successful! ', 0,60);5 $value=$memcache->get (' key ');6 Echo $value;7?>
3, after the execution appears: Memcache Connection successful!
4, Windows installation Memcache final installation is complete.
Summarized in 2014.09.29
Installation summary of memcache under Windows