檢視redis資訊命令

2021-10-18 03:10:28 字數 365 閱讀 5883

檢視遠端redis資訊

1.進入redis安裝目錄,shift+滑鼠右鍵 選擇在此處開啟powershell視窗

2.執行 .\redis-cli.exe -h x.x.x.x -p 6379 命令(-h後面x.x.x.x是要查詢的遠端伺服器ip,-p後面是redis埠號)

3.執行 get key (key為要查的redis的key值,key值要加引號)

比如:get 「userlogininfo:186961158」 (引號中是key值,如果不知道key值,可以用keys * 命令獲取全部key值,然後根據cookie中的tonkenid找key)

可在客戶端用f12可以查詢當前使用者的tokenid

redis檢視狀態資訊

1.redis benchmark redis基準資訊,redis伺服器效能檢測 redis benchmark h localhost p 6379 c 100 n 100000 100個併發連線,100000個請求,檢測host為localhost 埠為6379的redis伺服器效能 1.red...

檢視網絡卡資訊命令

1,ifconfig 檢視或者配置計算機當前的網絡卡配置資訊 如 ifconfig ifconfig grep inet 更精細 網域名稱 由一串用點分隔的名字組成 如 www.itcast.cn 也就是ip位址的別名,方便使用者記憶 ip位址 通過ip位址找到網路上的計算機 埠號 通過埠號可以找到...

檢視solaris系統資訊命令

檢視cpu 主頻 記憶體,擴充套件卡和其它硬體的資訊 usr platform sun4u sbin prtdiag v 使用prtconf命令去顯示系統配置資訊,這其中包括記憶體容量和系統外設的配置,以裝置樹的形式顯示 prtconf grep v not prtconf grep memory ...