自动安装
Ubuntu/Debian
sudo apt-get install memcached
Redhat/Fedora/Centos
yum install memcached
FreeBSD
portmaster databases/memcached
源代码安装
官方网站(http://memcached.org)下载memcached最新版本。
源码安装 Debian/Ubuntu: apt-get install libevent-dev Redhat/Centos: yum install libevent-devel gcc gcc-c++ perl-Test* wget -c http://memcached.org/latest 下载最新版本 tar -zxvf memcached-1.x.x.tar.gz 解压源码 cd memcached-1.x.x 进入目录 ./configure --prefix=/usr/local/memcached 配置 make && make test && sudo make install 编译安装
/usr/local/memcached/bin/memcached -h 命令帮助
转载于:https://blog.51cto.com/1550349/1933154