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服務的統計信息