一、软件包
1.bdb-4.8.26.tar.gz
2.libevent-2.0.15-stable.tar.gz
3.memcacheq-0.2.0.tar.gz
二、安装步骤
1.tar zxvf bdb-4.8.26.tar.gz
2.cd db-4.8.26/
3.cd build_unix/
4. ../dist/configure --prefix=/usr/local/berkeleydb
5. make & make install
6.tar zxvf libevent-2.0.15-stable.tar.gz
7.cd libevent-2.0.15-stable
8. ./configure --prefix=/usr/local/libevent
9. make & make install
10.tar zxvf memcacheq-0.2.0.tar.gz
11.cd memcacheq-0.2.0
12../configure --prefix=/usr/local/memcacheq --with-bdb=/usr/local/berkeleydb
13.make & make install
14.echo "/usr/local/berkeleydb/lib" >> /etc/ld.so.conf
15. ldconfig
16.echo "/usr/local/libevent/lib" >> /etc/ld.so.conf
17. ldconfig
18./usr/local/memcacheq/bin/memcacheq –h
19./usr/local/memcacheq/bin/memcacheq -d -r -H /opt/memcacheq -N -R -v -L 1024 -B 1024 > /opt/mq_error.log 2>&1
三、测试
1.telnet 10.218.31.121 22201(默认端口)
2.stats queue
3.set q4 0 0 5
4 hello
5 get q4
6 stats queue
7 delete q4