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:
- MemcachedServer is essentially a distributed object cache system and only provides basic TCP access interfaces.
- Libmemcached encapsulates the memcached server and provides a complete set of interfaces.
- 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.