Install and configure memcache on multiple ports in Windows

Source: Internet
Author: User

Install and configure memcache in WindowsArticleMany, but most of them use the default port 11211. How do I modify the default port and configure multiple memcache ports on one server? This is the problem to be solved in this article.

1.download rktools.exe from the Microsoft official website (only two EXE files are obtained after installation)ProgramTo check whether the program file in step 2 exists. If it does not exist, you can copy the corresponding files from other servers to the corresponding directory. Skip this step), and then install the SDK.
: Http://www.microsoft.com/downloads/details.aspx? Familyid = 9d467a69-57ff-4ae7-96ee-b18c4790cffd & displaylang = en

2. Find the two program files instsrv.exeand srvany.exe in the installation directory. Or copy the two files from other machines and place them in c: \ windows \ system32.

3.place memcached.exe to the C: \ Program Files \ memcached \ directory of the local machine.

4. Execute the following command c: \ windows \ system32 \ instsrv.exe memcache_11277 c: \ windows \ system32 \ srvany.exe

Note: For 64-bit systems, place instsrv.exeand srvany.exe under the c: \ windows \ syswow64 \ path and run c: \ windows \ syswow64 \ instsrv.exe memcache_11277 c: \ windows \ syswow64 \ srvany.exe. For details, refer:Http://blog.csdn.net/yaoyaoxingkong/article/details/8431945.

This command adds a service named memcache_11277. Similarly, memcache only needs to change memcache_11277 to memcache_11287 when listening to 11287 of services.

5. Open the Registry Editor (START-run-Regedit), find HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ memcache_11277, edit the key value of ImagePath, and change its value
"C: \ Program Files \ memcached \ memcached.exe"-D runservice-P 11277-M 1000-C 7000-l192.168.1.24
The red part is the IP address of the listener, and the Intranet IP address of the cost server needs to be set.
-P: the listening port. If you need to change the port to 11287 When configuring memcache 11287
-M: memory size used
-L: IP address of the listener. That is, the port corresponding to the IP address to listen.
More parameter meaning reference: http://www.cnblogs.com/qq78292959/archive/2012/12/27/2836080.html

6. Open the service, change the failed action to restart the service, and confirm that the startup mode is automatic.


Click to download the files required for memcache installation.

Related Article

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.