Install mencached and yummencached using yum in linux

Source: Internet
Author: User

Install mencached and yummencached using yum in linux

1. Install

Yum-y install memcached

2. Start memcached

./Usr/bin/memcached-d-m 256-u root-p 11211-c 1024-P/tmp/memcached. pid

 

Startup parameters:

The-d option is to start a daemon.

-U root indicates that the user who starts memcached is root.

-M indicates the amount of memory allocated to Memcache. The unit is MB. The default value is 64 MB.

-M return error on memory exhausted (rather than removing items ).

-U is the user who runs Memcache. If it is currently root, you need to use this parameter to specify the user.

-P is the port used to set TCP listening for Memcache, preferably over 1024.

-The c option is the maximum number of concurrent connections. The default value is 1024.

-P is the pid file for saving Memcache.

 

Note: If you do not know the installation directory

You can enter which memcached to view the path.

3. Connection

Telnet fig 11211

 

3. set read set and get read

Set name 0 0 3

123

Get name

123

Note: The last 3 is to set the number of digits of the string.

 

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.