memcache

1. 安卓libevent

wget http://nchc.dl.sourceforge.net/project/levent/libevent/libevent-2.0/libevent-2.0.21-stable.tar.gz

tar -xvzf libevent-2.0.21-stable.tar.gz

cd libevent-2.0.21-stable
./configure
make
make install

ln -s /usr/local/lib/libevent-2.0.so.5 /lib64/libevent-2.0.so.5

2. 安装memcache
wget http://www.memcached.org/files/memcached-1.4.21.tar.gz
cd memcached-1.4.21
./configure && make && make test && make install

3. 启动memcache
#./memcached -d -m 2048 -p 11211 -u root
./memcached -d -m 2048 -p 11211 -u nobody

错误处理

1. make prove command not found

yum provides *bin/prove
yum install perl-Test-Harness

相关推荐