Memcache Installation and commands (Windows 64bit)

Source: Internet
Author: User

Memcache installation steps are as follows:

1, unzip the memcached-win64-1.4.4-14.zip to D-disk, for example:

650) this.width=650; "title=" M1.png "src=" http://s3.51cto.com/wyfs02/M00/5A/1C/wKiom1T2lpaif0kXAAGANb9WuW0177.jpg "alt=" Wkiom1t2lpaif0kxaaganb9wuw0177.jpg "/>

2, set Memcached.exe to run as Administrator

3, use the following command to install the service run

d:/memcached/memcached.exe-d Install

650) this.width=650; "title=" M2.png "src=" http://s3.51cto.com/wyfs02/M01/5A/1C/wKiom1T2luvzIyZ7AAC_gCG4xcY479.jpg "alt=" Wkiom1t2luvziyz7aac_gcg4xcy479.jpg "/>

So far, the memcached service has been installed and will use the port number 11211 to listen. By default, the service is set to a 64Mb memory limit that can be modified by the registry as follows:

650) this.width=650; "title=" M3.png "src=" http://s3.51cto.com/wyfs02/M02/5A/1C/wKiom1T2lxCj5dyDAACaIqSvcKw163.jpg "alt=" Wkiom1t2lxcj5dydaacaiqsvckw163.jpg "/>

650) this.width=650; "title=" M4.png "style=" height:335px;width:592px "src=" http://s3.51cto.com/wyfs02/M00/5A/1C/ Wkiom1t2lzrqi9r5aajvlko4i0m194.jpg "width=" 762 "height=" 525 "alt=" Wkiom1t2lzrqi9r5aajvlko4i0m194.jpg "/>

650) this.width=650; "title=" M5.png "src=" http://s3.51cto.com/wyfs02/M01/5A/1C/wKiom1T2l1qQ8uc-AABzF3lAfVM333.jpg "alt=" Wkiom1t2l1qq8uc-aabzf3lafvm333.jpg "/>

After the value, add the following content:

- l 127.0.0.1 - m 1024x768 - c 2048

The final values are:

"D:\memcached\memcached.exe"-D runservice-l 127.0.0.1- m 1024x768 - C 2048

This makes it best to use the memory for every service startup 1024M , the maximum number of connections is 2048

4, start the service, use one of the following two commands

d:/memcached/memcached.exe-d start
net start "memcached Server"

650) this.width=650; "title=" M6.png "src=" http://s3.51cto.com/wyfs02/M02/5A/1C/wKiom1T2l7qT4CgmAADQmrNwok4659.jpg "alt=" Wkiom1t2l7qt4cgmaadqmrnwok4659.jpg "/>

when you're ready, you'll see the name in the resource manager memcached Service is running

650) this.width=650; "title=" M7.png "src=" http://s3.51cto.com/wyfs02/M01/5A/18/wKioL1T2mOaBjdjsAAIw_dOfEpo975.jpg "alt=" Wkiol1t2moabjdjsaaiw_dofepo975.jpg "/>

5, test

Use telnet Connection memcached Service, default port: 11211

650) this.width=650; "title=" M8.png "src=" http://s3.51cto.com/wyfs02/M02/5A/1C/wKiom1T2mAmC5xa9AACsI5USY44359.jpg "alt=" Wkiom1t2mamc5xa9aacsi5usy44359.jpg "/>

successfully entered, and entered Set command, as follows:

650) this.width=650; "title=" M9.png "src=" http://s3.51cto.com/wyfs02/M00/5A/1C/wKiom1T2mCLhBTCmAABd35ggjOg564.jpg "alt=" Wkiom1t2mclhbtcmaabd35ggjog564.jpg "/>

enter data in return "Love" Save in Carriage return, success prompt "STORED"

650) this.width=650; "title=" M10.png "src=" http://s3.51cto.com/wyfs02/M01/5A/1C/ Wkiom1t2mdlybwheaablo20wuuu063.jpg "alt=" Wkiom1t2mdlybwheaablo20wuuu063.jpg "/>

Store command:

1,set

Format: Set <key> <flags> <exptime> <bytes> [noreply]\r\n<value>\r\n

Description: Stores key/value values, which are replaced, and none will be added.

2,add

Format:add <key> <flags> <exptime> <bytes> [noreply]\ r \ n<value>\ r \ n

Description: Stores the new Key/value value. Must be in a situation where the key does not exist on the server

3,replace

Format: Replace <key> <flags> <exptime> <bytes> [noreply]\ r \ n<value>\ r \ n

Description: Modifies the value data for this key only if the key value is available on the server.

4,append

Format: Append <key> <flags> <exptime> <bytes> [noreply]\r\n<value>\r\n

Description: Adds data to the back of the specified key data. The directive does not use <flags> and <exptime>, but it must also provide

5,prepend

Format: prepend <key> <flags> <exptime> <bytes> [noreply]\r\n<value>\r\n

Description: Adds data to the front of the specified key data. The directive does not use <flags> and <exptime>, but it must also provide

6,cas

Format: CAs <key> <flags> <exptime> <bytes> <cas unique> [noreply]\r\n

Description: Synchronize data changes according to <cas unique>

Delete command:

1,delete

Format: delete <key> [<time>] [noreply]\ r \ n

Note: Delete the specified key data

Increase/decrease command:

1,increment

Format: incr <key> <value> [noreply]\r\n

Note: Increase the value of the specified key, and the key must exist first, and the directive will not create the key. Also, the added value must be within 64 bits.

2,decrement

Format: DECR <key> <value> [noreply]\r\n

Description: Reduces the value of the specified key for which the key must exist before the key is created. Also, if the value passed is less than 0, it is set to 0.

Other:

1,version

Format: version\r\n

Description: Returns version information for Memcached server

2,quit

Format: quit\r\n

Description: Interrupt Connection

attached: memcached Basic parameter settings:

- P ports to listen on

- L connected to IP Address , The default is native

- D start Start memcached Service

- D Restart re-up memcached Service

- D Stop|shutdown Close the running memcached Service

- D Install installation memcached Service

- D Uninstall Uninstall memcached Service

- u Run as an identity ( valid only when run as root )

- M Maximum memory usage, Unit MB . Default 64MB

- M An error is returned instead of deleting an item when memory is exhausted

- C maximum number of simultaneous connections, default is 1024x768

- F block size growth factor, default is 1.25

- N Minimum allocated space, Key+value+flags default is -

- h Display Help

You need to stop when setting parameters memcached , and then use the command line settings, such as:

Memcached.exe-m 100-d Start

This article comes from the "Simple and Easy" blog, so be sure to keep this source http://dengshuangfu.blog.51cto.com/8794650/1617213

Memcache Installation and commands (Windows 64bit)

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.