memcached windowns Installation Use

Source: Internet
Author: User

Download the installation package to CSDN, or find me, 1033536868

Installation:

memcached-d Install

memcached-d start

net start "Memcached Server"

Unloading:

memcached-d stop

memcached-d Remove

SC delete "Memcached Server"

Basic Settings for memcached:

-P Listening Port

-L connected IP address, default is native

-D Start memcached service

-D Restart Restart memcached service

-D Stop|shutdown Close the running memcached service

-D Install memcached service

-d Uninstall Uninstall memcached service

-U Run as (only valid when running as root)

-m maximum memory usage, in megabytes. Default 64MB

-M running out of memory and returning an error instead of deleting an item

-c Maximum number of simultaneous connections, default is 1024

-F Block size growth factor, default is 1.25

-N Minimum allocated space, key+value+flags default is 48

-H Display Help

Specific content I applied in my test environment, the operation is as follows

1. cmd on login memcache<textarea class="crayon-plain print-no" style="-moz-tab-size: 4; font-size: 12px ! important; line-height: 15px ! important; z-index: 0; opacity: 0; overflow: hidden;" readonly="" data-settings="dblclick">> Telnet 127.0.0.1 11211</textarea>
1 > telnet 127.0.0.1 11211
2. List all keys<textarea class= "Crayon-plain print-no" style= "-moz-tab-size:4"; Font-size:12px! Important line-height:15px! Important z-index:0; opacity:0; Overflow:hidden; "ReadOnly data-settings=" DblClick ">stats items//This is command STAT items:7:number 1 stat items:7:age 188 end</ textarea>
1234 stats items< Span class= "crayon-h" > //This is the command stat Span class= "crayon-v" >items:7:number 1 stat items :7:age 188 end
3. Get key via Itemid

Next, based on the items ID listed, this example is 7, the 2nd parameter is the length listed, and 0 is all listed

<textarea class="crayon-plain print-no" style="-moz-tab-size: 4; font-size: 12px ! important; line-height: 15px ! important; z-index: 0; opacity: 0; overflow: hidden;" readonly="" data-settings="dblclick">Stats cachedump 7 0//This is the command ITEM sess_sidsvpc1473t1np08qnkvhf6j2 [183 B; 1394527347 S] END</textarea>
123 stats cachedump 7 0 // This is the command ITEM sess_sidsvpc1473t1np08qnkvhf6j2 [183 b 1394527347 s end
4. Get the key value via get

The stats cachedump command above lists my session key, followed by a GET command to find the corresponding session value

<textarea class="crayon-plain print-no" style="-moz-tab-size: 4; font-size: 12px ! important; line-height: 15px ! important; z-index: 0; opacity: 0; overflow: hidden;" readonly="" data-settings="dblclick">get SESS_SIDSVPC1473T1NP08QNKVHF6J2//This is the command valuesess_sidsvpc1473t1np08qnkvhf6j2 1440 1 sess_|a:5:{s:6: "Verify "; s:32:" E70981FD305170C41A5632B2A24BBCAA "; s:3:" UID "; s:1:" 1 "; S:8:" username "; s:5:" admin "; S:9:" Logintime "; s:19:" 2014-03-11 16:24:25 "; s:7:" Log Inip "; S:9:" 127.0.0.1 ";}</textarea>
1234567 get sess_sidsvpc1473t1np08qnkvhf6j2 //This is an order .VALUEsess_sidsvpc1473t1np08qnkvhf6j2 1440 1 the sess_| A:5:{s:6:; S:32: " E70981FD305170C41A5632B2A24BBCAA "; S:3: "UID" s:1: " s:8: "username" ; S:5: "admin" s:9: "logintime" ; S:19: 2014-03-11 16:24:25 "; S:7: "log Inip "; S:9:"127.0.0.1";}
5. Reference Address

Reference Address: http://www.darkcoding.net/software/memcached-list-all-keys/

memcached windowns Installation Use

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.