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.
Relationship between memcachedserver, libmemcached, and memcachedclient