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!
Basic settings of memcached:
-P listening port
-l connected IP address, the default value is
-d start to start the memcached service
-D restart to restart the memcached service
- d stop | Shutdown shut down the running memcached service
-D install memcached service
-D uninstall memcached service
-run as U (only valid when running as root)
-m maximum Large memory usage, in MB. The default value is 64 MB
-an error is returned when M memory is exhausted, instead of deleting the entry
-C maximum number of simultaneous connections, the default value is 1024
-F block size growth factor. The default value is 1.25
-N, the minimum allocation space, the default value of key + value + flags is 48
-H display help
.
from: http://www.oschina.net/p/memcached+for+win32