using c#

用NC简单命令获取memcache状态

09-07-08 10:13   View:368

如果你安装了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:

 

Feedback


  • No comments posted yet.
Title:
 
Name:
 
URL:

Comments:
 

Because of the cache,you may see your comments several minutes later.


Main Feeds

Contact Me Privacy

All Rights Reservered CnKker.Com 2006~2009 Powder By 龍天昌盛 QQ:256051