Many phper tutorials on Liehuo. Net do not know how to build a Memcache development and debugging environment in Windows. Recently, I personally have been studying Memcache and recorded the process of self-Installation and setup.
In fact, when I started to study Memcache, I didn't know that there was a memcached for Win32 bird thing, which caused me to be able to handle it in a one-day way in the case of Cen-tos, today, I suddenly found that there is no problem in developing and debugging Memcache in Windows, so I wrote a Memcache document to share with you.
Install Memcache in Windows:
1. Download the stable version of memcache for windows and decompress it to a disk, for example, in c: \ memcached
2. Enter 'C: \ memcached \ memcached.exe-d install' on the terminal (that is, the cmd command interface) to install
3. Enter 'C: \ memcached \ memcached.exe-d start' to start. NOTE: in the future, memcached will be used as a windows Service and will be automatically started every time it is started. In this way, the server has been installed.
4. Download php_memcache.dll. Find the corresponding php version file by yourself.
5. Add a line 'extension = php_memcache.dll 'to C: \ winnt \ php. ini'
6. Restart Apache and check phpinfo. If memcache exists, the installation is successful!