CentOS 7 Memcached+Memagent 集群
安装libevent
1 | wget https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz |
安装memcached
1 | wget http://memcached.org/files/memcached-1.4.31.tar.gz |
安装memagent
1 | mkdir /usr/local/magent |
修改Makefile
1 | ifeq ($(ARCH), $(X64)) |
修改ketama.h
1 | #ifndef SSIZE_MAX |
安装memagent
1 | make 2 ln -i /usr/local/magent/magent /usr/bin/magent |
使用memagent
1 | #memcached 启动 |