如果你安装了NC,获取memcache的命令非常简单:
echo stats | nc 127.0.0.1 11211
There are all sorts of different interfaces to memcached, but you don't need any of them to make requests from the command line, because its protocol is so simple. Try this, assuming it's running on the usual port on the local machine:
CODE:
Here's an easy "top" emulator for memcached:
watch "echo stats | nc 127.0.0.1 11211"
CODE: