memcacheq的安装与配置


memcacheQ安装
1. 安装berkeleydb
tar zxvf db-4.7.25.tar.gz
cd db-4.7.25
cd build_unix/
../dist/configure
make
make install

2. 安装libvent

tar zxvf libevent-1.4.13-stable.tar.gz
cd libevent-1.4.13-stable
./configure –prefix=/usr
make
make install

vi /etc/ld.so.conf
增加:
/usr/local/lib
/usr/local/BerkeleyDB.4.7/lib


3. 安装memcacheQ
tar xvzf memcacheq-0.2.0.tar.gz
cd memcacheq-0.2.0
./configure –enable-threads
make
make install

memcacheq -h (命令帮助)
这个时候会出现这样的问题
memcacheq: error while loading shared libraries: libdb-5.0.so: cannot open shared object file: No such file or directory

vi /etc/profile
增加
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:/usr/local/BerkeleyDB.4.7/lib


source /etc/profie

问题就可以解决


初始化和启动命令:

/usr/local/bin/memcacheq -d -r -H /usr/local/memcacheqdata/22202 -N -R -v -L 1024 -B 2048 -A 4096 -p 22202 -m 256 -u root


你可能感兴趣的:(memcache)