memcached-tool 命令用于查看 Memcached 运行状态,用法如下:
Usage: memcached-tool <host[:port] | /path/to/socket> [mode] memcached-tool 10.0.0.5:11211 stats //查看 Memcached 运行状态 memcached-tool 10.0.0.5:11211 dump //导出 Memcached 内存数据 memcached-tool 10.0.0.5:11211 display //查看 Memcached Slab 信息
[root@localhost ~]# memcached-tool 127.0.0.1:11211 stats //解释说明参考:http://www.51testing.com/html/50/253150-248619.html #127.0.0.1:11211 Field Value accepting_conns 1 auth_cmds 0 auth_errors 0 bytes 0 bytes_read 27 bytes_written 1032 cas_badval 0 cas_hits 0 cas_misses 0 cmd_flush 0 cmd_get 0 ......