Mac 下redis操作

因为服务器用到了缓存,但是更改了数据库,缓存还没失效,所以需要手动清空缓存。

清空缓存,首先Redis服务运行中

停止Redis 服务

brew services stop [email protected]

启动Redis 服务

brew services start [email protected]

进入控制台

1.先进入默认安装的目录:/usr/local/Cellar/[email protected]/3.2.13_1/bin

2.会看到redis-cli 文件

3.执行这个文件 ./redis-cli

4.输入命令 flushall

猜你喜欢

转载自blog.csdn.net/u014632228/article/details/107110628