Configure Memcache maximum memory value under Windows Server

Source: Internet
Author: User

The requirements for modifying the Memcache configuration under Windows Server are as follows:

1, using the network IP to provide Web application server calls, not allowed directly through the external network calls, such as the Memcache service on the 192.168.1.168 server

2, change the port, such as 11200

3, allocating memory, such as allocating 1024M (1G memory)

Here's how:

< Span style= "color: #333333; line-height:25px; Font-family:arial, Tahoma, Verdana, Sans-serif; font-size:14px ">1> Start > Run: regedit (carriage return)  

2> found in the registry: hkey_local_machine\system\currentcontrolset\services\memcached Server 

3> default ImagePath key value is:" C:\memcached\memcached.exe "-D Runservice, instead: "C:\memcached\memcached.exe"-D runservice-m 512-p 11200-l 192.168.1.168 

4> Run dos restart memcache service: memcached-d restart 

Note: If you change the above IP192.168.1.168 to 127.0.0.1, you can control only native access to the memcached service, and no other machine is accessible and more secure.

You can use PHP-written memadmin application to monitor the MEMCAHCE running state: http://www.junopen.com/memadmin/, if it is a native installation, run the default settings directly to monitor.

Configure Memcache maximum memory value under Windows Server

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.