How to install Memcached on Windows

Source: Internet
Author: User

1. Download Memercached For Windows: http://up.2cto.com/2012/0522/20120522094758371.rar Ii. Installation Steps www.2cto.com 1. Unzip to the specified directory, such as: C: \ Memcached \ memcached-win32-1.4.4-14. 2. Open the command window with cmd, go to the decompressed directory, and enter unzip memcached.exe-d install ". 3. Open the control panel and open the service. You can see that memcached is already available. If it is not started, start it manually. 4. Use the telnet command to verify whether the cache server is available. At the beginning, nothing is displayed. Press enter and enter the command stats to view the statistics. For example, the server is operating normally. 3. Parameter Introduction 1. The installation and start of the above steps are performed in the default environment. During installation, you can set the following parameter:-p listening port www.2cto.com-l connection IP address, the default value is local-d start to start memcached service-d restart to restart memcached service-d stop | shutdown to disable the running memcached service-d install to install memcached service-d uninstall to uninstall memcached service-u run as (only valid when running as root) -MB maximum memory usage, in MB. An error is returned when 64 MB-M memory is used up by default, instead of deleting the maximum number of concurrent connections in item-c. The default value is 1024-f. The default value is 1.25-n, key + value + flags the default value is 48-h. The help www.2cto.com is shown as "memcached-d install-l 127.0.0.1-m 1024-c2048 ". 2. If no parameter is added during installation, you can modify the registry information to open the registry and find HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ memcached. There is an "ImagePath" item in it, value: "C: \ Memcached \ memcached-win32-1.4.4-14 \ memcached.exe"-d runservice added "-m 1024-c2048 ". For example, 3. After Entering the stats command, the parameters displayed on the page are described. STAT pid 4356 server process id stat uptime 56625 server running time, unit: seconds STAT time 1225249079 server current UNIX time STAT version1.1.0 server version number STAT pointer_size 64 STAT rusage_user 151.845489 cumulative user time of the process (seconds: subtle) STAT rusage_system 121.667603 accumulated system time of the process (seconds: subtle) STAT ibuffer_size 4096 www.2cto.com STAT curr_connections 13 connection count STAT total_connections 54136 total number of connections received since the server was running STAT connection_structures 318 Number of connection structures allocated by the server STAT cmd_get 100595 Total number of returned requests STAT pai_set 6510 total number of stored requests STAT get_hits 96543 total number of successful requests STAT get_misses 4052 total number of failed requests STAT bytes_read 4427679 total number of bytes the server reads from the network STAT bytes_written 6585596 total number of bytes sent by the server to the network remarks: www.2cto.com uptime is the number of seconds for memcached to run, and pai_get is the number of times the cache is queried. Pai_get/uptime gets the average number of requests cached per second. Cmd_set is the number of times key => value is set. The whole memcached is a large hash. If you use the content not found by using mongo_get, it will call mongo_set to write it into the cache. Get_hits indicates the number of cache hits. The cache hit rate is get_hits/pai_get * 100%. Get_misses plus get_hits equals to pai_get. Total_itemscurr_items indicates the number of key-value pairs in the cache. Total_items = resource_set = get_misses. However, if memcached is set to delete content when the maximum available memory is used up, the above equation is not true. Author Tian zhiliang

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.