标签:memcache

memcached默认采用的是Slab Allocator的机制分配管理内存的,在此之前,内存的分配是通过对所有的记录简单地进行malloc和free来进行的,但这种方式容易造成很多内存碎片,加重操作
1、安装memcached apt-get install memcached 2、memcached的基本设置: -p 监听的端口 -l 连接的IP地址, 默认是本机 -d start 启动mem