Linux Redis清理缓存

admin Linux运维评论603字数 204阅读模式

1.先确保redis进程存活

  1. ps -ef|grep redis  

2.执行./redis-cli或者./redis-cli -h 127.0.0.1 -p 6379

  1. [root@slave bin]# /bin/redis-cli  

3.执行dbsize命令

  1. 127.0.0.1:6379> dbsize  

4.清理

  1. 127.0.0.1:6379> flushall  

5.退出

  1. 127.0.0.1:6379> exit  

版权声明:文章图片资源来源于网络,如有侵权,请留言删除!!!
admin
  • 本文由 发表于 2021年9月28日 13:11:04
  • 转载请务必保留本文链接:https://www.58pxe.com/7763.html
匿名

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: