Redis Client Kill 命令

  • 列出所有已连接客户端

127.0.0.1:6379> CLIENT LIST id=369 addr=127.0.0.1:53886 fd=8 name= age=30 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=26 qbuf-free=32742 obl=0 oll=0 omem=0 events=r cmd=client id=370 addr=127.0.0.1:53891 fd=9 name= age=4 idle=4 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=command
  • 杀死连接的客户端

CLIENT KILL 127.0.0.1:53891
鲁ICP备16017569号-2