목요일, 6월 13, 2024
HomeLinuxhow to memcached replication install

how to memcached replication install

how to memcached replication install

1.apt-get install make g++

2.libevent-1.4.14b-stable

wget https://leyan-linux-life.googlecode.com/files/libevent-1.4.14b-stable.tar.gz
./configure --prefix=/usr/local
make
make install

ln -s /usr/local/lib/libevent-1.4.so.2 /usr/lib/

3.memcached replication install

wget http://jaist.dl.sourceforge.net/project/repcached/repcached/2.2.1-1.2.8/memcached-1.2.8-repcached-2.2.1.tar.gz
./configure --prefix=/usr/local/memcached_rep --enable-replication
make
make install

4.memcache start

cd /usr/local/memcached_rep

 memcache server #1
/usr/local/memcached_rep/bin/memcached -U 0 -p 11211 -d -v -m 30720 -u root -l 0.0.0.0 -P /usr/local/memcached_rep/memcachedrep.pid -c 32767 -x 192.168.56.41

 memcache server #2
/usr/local/memcached_rep/bin/memcached -U 0 -p 11211 -d -v -m 30720 -u root -l 0.0.0.0 -P /usr/local/memcached_rep/memcachedrep.pid -c 32767 -x 192.168.56.40

5. memcache status
netstat -ntlp | grep 11211

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Time limit exceeded. Please complete the captcha once again.

Most Popular