memcached replication

memcached replication

 
master:192.168.1.10
slave :192.168.1.20
 
下载对应的版本
wget http://nchc.dl.sourceforge.net/project/repcached/repcached/2.2-1.2.8/memcached-1.2.8-repcached-2.2.tar.gz
 
安装(两台memcached的安装一样)
./configure --prefix=/usr/local/memcached --enable-replication
make
make install
 
启动
master memcached
/usr/local/memcached/bin/memcached -v -d -m 30000 -p 11211 -u memcached
 
slave memcached
/usr/local/memcached/bin/memcached -v -d -m 30000 -p 11211 -u memcached -x 192.168.1.10 -X 11212
 
 

你可能感兴趣的:(memcached,Replication)