memcached是针对数据库的缓存软件 能有效降低数据库的负载
环境Centos6.5
一、安装步骤:
1、编译安装libevent:
yum install libevent-devel -y
2、编译安装Memcached:
tar zxvf http://memcached.googlecode.com/files/memcached-1.4.15.tar.gz
cd memcached-1.4.15/
./configure prefix=/usr/local/memcached-1.4.15/ --with-libevent
make
make install
ln -s /usr/local/memcached-1.4.15/ /usr/local/memcached
二、启动:
/usr/local/memcached/bin/memcached -v -d -u nobody -m 2048 -p 10099
/usr/local/memcached/bin/memcached -v -d -u nobody -m 2048 -p 10100
memcached 节点标准,虚拟机服务器,每台memcached服务器启动两个节点,每个节点2G内存
按实际需求来组成集群