centos 系统 Redis清除缓存

2026-02-13 19:31:42

1、putty远程登录centos系统

2、查看Redis是否运行 :  ps aux|grep redis

centos 系统 Redis清除缓存

3、查看Redis所处位置: whereis redis

centos 系统 Redis清除缓存

4、切换的Redis的bin目录所在位置:cd /usr/local/redis/bin/

进入到Redis数据库命令操作模式: ./redis-cli -h 127.0.0.1 -p 6379

centos 系统 Redis清除缓存

5、清除缓存:flushall

提示失败:(error) NOAUTH Authentication required.

centos 系统 Redis清除缓存

6、用密码登录数据库: auth Redis数据库密码

centos 系统 Redis清除缓存

7、再次清除缓存:flushall

centos 系统 Redis清除缓存

猜你喜欢