查询Memcached状态的基本方法:
1.telnet [ip] [port]
2.stats
以下为快捷命令:
使用linux命令来查看状态:
printf "stats\r\n" | nc [ip] [port]
printf "stats\r\n" | nc 192.168.8.124 11211
模拟top,实时查看状态:
watch "printf 'stats\r\n' | nc [ip] [port]"
watch "printf 'stats\r\n' | nc 192.168.8.124 11211"