memcached 安装
libevent下载网址:http://www.monkey.org/~provos/libevent/
1. 解压缩
?tar xzfv libevent-1.4.8-stable.tar.gz
?
2. 进入到 libevent-1.4.8-stable目录
??? cd libevent-1.4.8-stable
???
3. 编译,安装
??? ./configure
??? make
??? make install
?注:默认安装到/usr/local/lib/目录
memcached下载网址:http://www.danga.com/memcached/download.bml
安装步骤如下:
1. 解压缩
?tar xzfv memcached-1.2.6.tar.gz
?
2. 进入到 memcached-1.2.6目录
?cd memcached-1.2.6
???
3. 编译,安装
??? ./configure --prefix=/local/memcached
??? make
??? make install
问题处理
检查类库加载
LD_DEBUG=libs /usr/local/memcached/bin/memcached -v?
查询类库加载
find / -name libevent-2.0.so.5
cp /lib/libevent-2.0.so.5 /lib64/tls/x86_64/libevent-2.0.so.5
usr/local/memcached/bin # ./memcached -d -u nobody -m 512 10.21.130.212 -p 11211