安装libevent库
Linux系统安装memcached,首先要先安装libevent库。
yum install libevent libevent-devel
安装 Memcached
yum install memcached
运行 Memcached
#开启memcached服务
systemctl start memcached
#设置开机自启动
systemctl enable memcached
#停止memcached服务
systemctl stop memcached