:
Http://s3.amazonaws.com/downloads.northscale.com/memcached-win64-1.4.4-14.zip
Http://s3.amazonaws.com/downloads.northscale.com/memcached-win32-1.4.4-14.zip
1. Enter the ' c:\memcached\memcached.exe-d install ' installation in the terminal (also known as the cmd Command interface)
2. Re-enter: ' c:\memcached\memcached.exe-d start ' starts.
Note: memcached will start automatically every time a service is turned on for Windows. This way the server side is already installed.
That's it, now your memcached server is installed and was listening to Port 11211.
There is one and thing left to do. By default, the server is set to 64Mb memory limit, which is too small. To correct, go to Registry Editor and find key
Hkey_local_machine/system/currentcontrolset/services/memcached Server.
Change the ImagePath entry to:
"C:/memcached/memcached.exe"-D runservice-m 512
This is the use of the MB memory limit for your server.
Stop memcached:
D:\wamp_win7\bin\memcached-win32-1.4.4-14> memcached.exe-d Stop
Uninstall memcached:
d:\wamp_win7\bin\memcached-win32-1.4.4-14> memcached.exe-d Uninstall
Related issues:
1, set the maximum memory consumption seems to have no effect.
-M tells Memcached how much RAM to use for item storage (in megabytes). Note carefully that this isn ' t a global memory limit, so memcached would use a few% more memory than your it to. Set this to safe values. Setting it to less than megabytes does not work properly in 1.4.x and earlier. It'll still use the memory.
2, in the same assembly to put a value into the memcache, immediately go to the time can be taken, but in the other assembly is not taken, or telnet can not get the value.
Possible problems and solutions:
A. Stored values after serialization of different types, you need to update them to the same type, it is recommended to use the same common type, such as String,int, put string can be used to spell an XML string, and then to use when the parsing
B. It is very likely that the memcache pool is full, can be set <socketpool minpoolsize= "" "Maxpoolsize=" "connectiontimeout=" 00:10:00 " deadtimeout= "00:02:00"/>
memcached Basic parameter settings:
-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
memcached in Windows installation