One. Install memcahed under Windows
1, download memcache Windows stable version, unzip and put under a disk, such as in c:/memcached
2. Enter "c:/memcached/memcached.exe-d Install" in terminal (also cmd command interface)
3, re-enter: "C:/memcached/memcached.exe-d start" start. (Memcached will start automatically every time a service is turned on for Windows.) This way the server side is already installed. )
Basic Settings for memcached:
-P Listening Port
-L connected IP address, default is native
-D Start memcached service
-D Restart Restart memcached service
-D Stop|shutdown Close the running memcached service
-D Install memcached service
-d Uninstall Uninstall memcached service
-U Run as (only valid when running as root)
-m maximum memory usage, in megabytes. Default 64MB
-M running out of memory and returning an error instead of deleting an item
-c Maximum number of simultaneous connections, default is 1024
-F Block size growth factor, default is 1.25
-N Minimum allocated space, key+value+flags default is 48
-H Display Help
issue: after installing memcached, memcached.exe-d start or memcached.exe-d stop using cmd will be reported: Failed tostart service Or the failed stop service.
FIX:win7 needs to start cmd with an administrator to complete this job
Two. Connect memcahed under Windows
1. Open command line telnet 127.0.0.1 11211
issue:' Telnet ' is not an internal or external command
FIX:win7 install Telnet
"Start" → "Control Panel" → "Programs", "in programs and features" to find and click "Turn Windows features on or off" into the Windows Feature Settings dialog box. Locate and tick "Telnet client" and "Telnet Server", and finally "OK" to complete the installation at a later moment.
memcached Installation Tutorials and FAQs