redis長(zhǎng)度 如何用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個(gè)并發(fā)連接,10000個(gè)請(qǐng)求,檢測(cè)主機(jī)是localhost,端口是6379,Redis server performance
2。監(jiān)控主機(jī)是localhost,端口是6379,redis連接和讀寫操作
redis cli-H localhost-P 6379 monitor
3。提供主機(jī)為localhost、端口為6379和redis service的統(tǒng)計(jì)信息
redis cli-H localhost-P 6380 info
4。實(shí)時(shí)打印主機(jī)為localhost,端口為6379的redis實(shí)例的整體信息
redis stat host localhost port 6379 overview
5。輸出主機(jī)為localhost,端口為6379,以及redis服務(wù)中每個(gè)請(qǐng)求的響應(yīng)時(shí)間
redis stat host localhost port 6379概述
redis命令用于對(duì)redis服務(wù)執(zhí)行操作。所以我們必須啟動(dòng)redis服務(wù)程序,也就是redis安裝目錄中的redis-服務(wù)器.exe,可以雙擊執(zhí)行,也可以打開CMD窗口,找到redis安裝目錄的路徑,通過redis server命令執(zhí)行。要在redis服務(wù)上執(zhí)行命令,您需要一個(gè)redis客戶機(jī)。redis客戶端在我們之前下載的redis安裝包中,也就是redis-cli.exe同樣,它可以通過雙擊或命令來執(zhí)行。