发布时间:2016-01-12 17:01:30编辑:丝画阁阅读(285)
1.查memcache状态
/usr/bin/perl /usr/local/src/memcached-1.4.5/scripts/memcached-tool localhost:11211
或者
telnet localhost 11211
2.手动清除memcached测试
1). flush_all
echo "flush_all" | nc localhost 11211
# telnet localhost 11211
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
get var_key
VALUE var_key 0 13
test variable
END
flush_all
OK
get var_key
END
quit
Connection closed by foreign host.
2). 重启memcached进程
kill $(ps aux|grep memcached|grep -v grep |awk '{print $2}')
/usr/local/memcached/bin/memcached -d -m 256 -p 11211 -u nobody
关键字:
上一篇:php采集页面内容并自动转码
下一篇:GIT
本站部分内容来源网络及网友上传,本站未必能一一鉴别其是否为公共版权或其版权归属,如果您认为侵犯您的权利,本站将表示非常抱歉!
请您速联系本站,本站一经核实,立即删除。删文删帖联系【2789291421@qq.com】