安装libevent和memcache

tarzxvflibevent-1.4.13-stable.tar.gz

cdlibevent-1.4.13-stable

./configure–prefix=/usr

make

makeinstall

安装memcached,同时需要安装中指定libevent的安装位置

tarzxvfmemcached-1.4.4.tar.gz

cdmemcached-1.4.4

./configure–with-libevent=/usr

make&&makeinstall

安装完成后会把memcached自动放到/usr/local/bin/memcached

4、测试是否成功安装memcached

ls-al/usr/local/bin/mem*

-rwxr-xr-x1rootroot20186912-1421:44/usr/local/bin/memcached

相关推荐