2013年12月30日月曜日

ncコマンドでmemcachedにコマンドを送りつける

開発用のサーバでmemcachedのキャッシュを全消しするために flush_all をよく使うんだけど、telnetで対話的にコマンド送り込むのだるいのでそういう場合はnc(netcat)を使えばいいよー、という話。

下記はlocalhostの11211でLISTENしてるmemcachedにflush_allを送りつける例。

$ echo flush_al | nc localhost 11211

1 件のコメント:

匿名 さんのコメント...

The RNG continues to shuffle the remaining forty seven cards till the "Deal button" is pressed again-at which level the discarded cards are replaced. My second profitable slots strategy is when casinos arrange their machines to win instantly, however then don’t supply any extra wins if persevering with to play. 온라인카지노 This slots strategy is simply as cheap and easy to verify on video pokermachines as it's on slots. When I’ve discovered a on line casino units up their machines this way, ALL their machines are arrange this way.