memcached Windows Modify Port

Source: Internet
Author: User
Tags memcached windows

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, ^_^.

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.