linux查看redis運行狀態(tài) 如何用ServiceStack.Redis定期判斷Redis服務(wù)器的狀態(tài)?
如何用ServiceStack.Redis定期判斷Redis服務(wù)器的狀態(tài)?Redis服務(wù)器狀態(tài)和性能監(jiān)視命令1。Redis benchmark信息,Redis server performance d
如何用ServiceStack.Redis定期判斷Redis服務(wù)器的狀態(tài)?
Redis服務(wù)器狀態(tài)和性能監(jiān)視命令
1。Redis benchmark信息,Redis server performance detection
Redis benchmark-H localhost-P 6379-C 100-N 10000
100個并發(fā)連接,10000個請求,檢測主機是localhost,端口是6379,Redis server performance
2。監(jiān)控主機是localhost,端口是6379,redis連接和讀寫操作
redis cli-H localhost-P 6379 monitor
3。提供主機為localhost、端口為6379和redis service的統(tǒng)計信息
redis cli-H localhost-P 6380 info
4。實時打印主機為localhost,端口為6379的redis實例的整體信息
redis stat host localhost port 6379 overview
5。輸出主機為localhost,端口為6379,以及redis服務(wù)中每個請求的響應(yīng)時間
redis stat host localhost port 6379概述
redis命令用于對redis服務(wù)執(zhí)行操作。所以我們必須啟動redis服務(wù)程序,也就是redis安裝目錄中的redis-服務(wù)器.exe,可以雙擊執(zhí)行,也可以打開CMD窗口,找到redis安裝目錄的路徑,通過redis server命令執(zhí)行。要在redis服務(wù)上執(zhí)行命令,您需要一個redis客戶機。redis客戶端在我們之前下載的redis安裝包中,也就是redis-cli.exe同樣,它可以通過雙擊或命令來執(zhí)行。