MEMCACHED安装

1、下载应用

http://memcached.org/

2、安装libevent

yum install libevent.x86_64 libevent-devel.x86_64

3、安装memcached服务

./configure --prefix=/opt/memcached
make&&make install

4、启动服务

/opt/memcached/bin/memcached -u mysql -d


5、出错处理:

/opt/memcached/bin/memcached: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory

解决方法:

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

64位机:

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