1、重启memcached
2、

$ echo ”flush_all” | nc localhost 11211

3、

[root@localhost ~]# telnet localhost 11211
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
flush_all  输入
OK
quit  输入
Connection closed by foreign host.
[root@localhost ~]# 

4、写程序

发表评论

电子邮件地址不会被公开。 必填项已用*标注