1. First ensure that the redis process is alive
ps -ef|grep redis
2. Execute. /redis-cli or ./redis-cli -h 127.0.0.1 -p 6379
[root@slave bin]# ./redis-cli
3. Execute: dbsize command
4. Execute: flushall command
5. Use keys * for verification Is it empty?
6. Execution: exit
##For more Redis related knowledge, please visitRedis Use the tutorial column!
The above is the detailed content of How to clear redis cache under linux. For more information, please follow other related articles on the PHP Chinese website!