Start multiple memcached services in the same Windows machine

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.