Install memcache on centos

Source: Internet
Author: User

1,Because memcached is based on libevent, you must install libevent and libevent-devel.

    1. Method 1: # Yum install libevent-devel-y (one-click installation)
    2. Method 2: 1> tar zxvf libevent-2.0.17-stable.tar.gz 2>./configure -- prefix =/usr/local/memcache & make install

2,Download and unzip memcached-1.4.5

Memcached Official Website: http://memcached.org/

    1. # Cd/usr/local
    2. # Mkdir memcache (put the compressed package in this folder)
    3. # Cd/usr/local/memcache
    4. # Tar-xvzf memcached-1.4.5.tar.gz

3,Compile and install memcached-1.4.5

    1. # Cd memcached-1.4.5
    2. #./Configure-- Prefix =/usr/local/memcache
    3. # Make
    4. # Make install

4,Normal? Telnet to see

    1. Telnet 192.168.40.151 11211
 

Enter stats to check whether the memcached service is normal.
Then exit quit.

References: http://snowolf.iteye.com/blog/1447348
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.