安装Memcached
安装必要memcached libmemcached libevent
yum install -y memcached libmemcached libevent
开启memcached服务
systemctl start memcached
查看Memcached运行状态
# memcached-tool 127.0.0.1:11211 stats
或者echo stats |nc 127.0.0.1 11211 需要安装nc工具 yum install -y nc
若安装libmemcached后,可以使用命令
memstat