To use memcached in Windows, you must first download the memcached for Win32 installation.
: http://jehiah.cz/projects/memcached-win32/
After decompression, simply enter the following command in the command Window c : \memcached\memcached.exe-d install installs memcached as a Windows service.
When the service is started, the Memcached service uses the default port of 11211 , the maximum memory used by default is 64M.
has encountered some problems modifying these 2 configuration options, searching the web for a lot of information, saying that starting the service with the following command is possible:
C:\memcached\memcached . Exe-p 12345 -m 1024-d start , -P indicates the port to be modified, and-m represents the maximum memory used (in M).
But no matter how this command is invoked, it is found that the port is still 11211.
Opens the Windows Services Control Panel and discovers that the Memcached.exe default installed server startup parameter does not write-p-m parameters, only 1 parameter.
So no matter what command to start the service is useless, see:
Then think of directly modify the Windows service startup parameters, the operation is as follows, open the registry, found:
hkey_local_machine\system\ currentcontrolset\services\memcached Server
The value of the ImagePath entry is: "C:\memcached\memcached.exe"-D runservice
is changed to: "C:\memcached\memcached.exe"-p 12345-m 128 -d runservice
Restart the memcached service after saving, and then enter the Netstat-n-a on the command line to see if the port is changed now, ^_^.