手动清除memcached缓存方法

[1] # telnet 192.168.1.12 11211 Trying 192.168.1.12...Connected to 192.168.1.12.Escape character is '^]'.flush_allOKquitConnection closed by foreign host.
[2] echo "flush_all" | nc 192.168.1.12 11211

[3]重启memcached
kill $(ps aux|grep memcached.pid|grep -v grep |awk '{print $2}')
/usr/local/bin/memcached -d -m 512 -u root -l 192.168.1.6 -p 12001 -c 256 -P /tmp/memcached.pid

你可能感兴趣的:(清楚cache方法)