Start multiple memcached services in the same Windows machine
This requires multiple memcached services to be started on a single machine.
Suppose Memcached is in the following directory: C:\memcached\memcached.exe
Execute the following command in CMD to install a memcached service (remember to change the port number!). ):
" Memcached Server1 " " F:\memcached\memcached.exe-d runservice-m 32-p 11200-l 127.0.0.1 " " Memcached Server1 "
" Memcached Server2 " " ""Memcached Server2 "
Here are the commands to start, stop, and uninstall the service:
" Memcached Server1 " // Start " Memcached Server1 " // Stop " Memcached Server1 " // Uninstall the service
If you are executing a command, you are prompted with the following message:
Creates a service entryinchThe registry and service DATABASE.SYNTAX:SC Create [service name] [BinPath=] <option1> <option2>... CREATE OPTIONS:NOTE:The option name includes the equal sign. Type= <own|share|interact|kernel|filesys|rec>(Default=own) Start= <boot|system|auto|demand|disabled>(Default=demand) Error= <normal|severe|critical|ignore>(Default=normal) BinPath= <BinaryPathName>Group= <LoadOrderGroup>Tag= <yes|no>depend= <dependencies (separated by/(forward slash)) >obj= <accountname| Objectname>(Default=LocalSystem) DisplayName= <display name>Password= <password>
Please check the commands you have entered carefully.
Check Point:
the parameters behind the SC cretate command, such as the equals sign [binpath=] there must be a space ,
Similarly, after the other parameters such as group=, displayname= after the equals sign need a space,
Otherwise, the SC Create command cannot successfully create the service and will only return you with help information.
From: http://www.cnblogs.com/yejg1212/archive/2013/07/15/3191616.html
Start multiple memcached services in the same Windows machine