1、redis-benchmark
redis基准信息,redis服務器性能檢測
redis-benchmark -h localhost -p 6379 -c 100 -n 100000
100個並發連接,100000個請求,檢測host為localhost 端口為6379的redis服務器性能
2、redis-cli
redis-cli -h localhost -p 6380 monitor
Dump all the received requests in real time;
監控host為localhost,端口為6380,redis的連接及讀寫操作
redis-cli -h localhost -p 6380 info
Provide information and statistics about the server ;
提供host為localhost,端口為6380,redis服務的統計信息