Memcache Installation and use

Source: Internet
Author: User
Tags memcached

First, the resources download

You must first install the libevent before installing memcached

Download the installation Kits libevent-1.4.14b-stable.tar.gz and memecached-1.4.22.tar.gz on Libevent and Memcached's website respectively

Unzip the two installation packages into the installation directory (the installation directory is up to you)

Second, installation libevent

1, enter the Libevent installation directory

2. Execute the following command to install

./configure

Make

Make install

Note: How to make errors requires the installation of missing items. See the error after make on the specific situation

Third, installation memcached

Go to its installation directory and execute the command.

./configure

Make

Make install

Four, start memcached (online There are many ways to start, the following is my verification success)

1. Start

./memcached-d-C 10240-m 1024-u Root

2. View the running status

Ps-ef | grep memcached

V. Connecting memcatched

1. The CentOS machine in the lab may not have Telnet installed, so it is necessary to install Telnet before connecting to memcatched

Telnet installation Reference http://blog.csdn.net/mi_mang/article/details/4605787

2. Connect to Memcated

telnet localhost 11211

If the success will be as shown in the state

At this point, you can perform the basic command operation of Memcached.

Vi. Closure of memcached

Kill [Service number]//service number viewed from the running state

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Memcache installation and 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.