养生 装修 购物 美食 感冒 便秘 营销 加盟 小吃 火锅 管理 创业 搭配 减肥 培训 旅游

centos 系统 Redis清除缓存

时间:2024-10-24 09:20:52

在centos系统下清除Redis数据库缓存的操作步骤与命令

工具/原料

putty工具

方法/步骤

1、putty远程登录centos系统

2、查看Redis是否运行:psaux|grepredis

centos 系统 Redis清除缓存

3、查看Redis所处位置:whereisredis

centos 系统 Redis清除缓存

4、切换的Redis的bin目录所在位置:cd/u衡痕贤伎sr/local/redis/bin/进入到Redis数据库命令操作模式:./redis-cli-h127.0.0.1-p6379

centos 系统 Redis清除缓存

5、清除缓存:flushall提示失败:(error)NOAUTHAuthe艘绒庳焰nticationrequired.

centos 系统 Redis清除缓存

6、用密码登录数据库:authRedis数据库密码

centos 系统 Redis清除缓存

7、再次清除缓存:flushall

centos 系统 Redis清除缓存

© 一点知识