Relationship between MemcachedServer, libmemcached, and MemcachedClient

Source: Internet
Author: User

Relationship between MemcachedServer, libmemcached, and MemcachedClient

Author: zhanhailiang Date: 2014-10-06

1. Download and install libevent (MemcachedServer depends on libevent package)

cd libevent-2.0.21-stable/./configure --prefix=/usr/local/libevent-2.0.21-stablemake && make install

2. Download and install MemcachedServer

cd memcached-1.4.20./configure --prefix=/usr/local/memcached-1.4.20 --with-libevent=/usr/local/libevent-2.0.21-stablemake && make install

3. Download and install libmemcached

cd libmemcached-1.0.18./configure --prefix=/usr/local/libmemcached-1.0.18 --with-memcachedmake && make install

Note the official description of libmemcached:

4. Download and install MemcachedClient

/usr/local/php/bin/phpize  ./configure --prefix=/usr/local/libmemcached-1.0.18  --with-memcached --with-mysql=/usr/local/mysql/bin/mysql_config  --with-gearmandmake && make install

Note the official description of MemcachedClient:

Summary:

  1. MemcachedServer is essentially a distributed object cache system and only provides basic TCP access interfaces.
  2. Libmemcached encapsulates the memcached server and provides a complete set of interfaces.
  3. MemcachedClient calls the libmemcached encapsulated interface to add, delete, modify, and query operations on MemcachedServer.

# Include <libmemcached/memcachedh> Error

You need to configure the installation path of libmemcached.
 

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.