Memcached安装与使用

Memcached是一个自由开源的,高性能,分布式内存对象缓存系统.

安装Memcached

  • 环境:Ubuntu Xenial 16.04 (LTS)

For Debian or Ubuntu:

sudo apt-get install memcached

For Redhat/Fedora:

yum install memcached

从源码安装:

sudo apt-get install libevent-dev

yun install libevent-devel

wget https://memcached.org/latest
[you might need to rename the file]
tar -zxf memcached-1.x.x.tar.gz
cd memcached-1.x.x
./configure --prefix=/usr/local/memcached
make && make test && sudo make install

参考资料