国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數據庫 > Redis > 正文

redis常用命令小結

2020-02-17 14:57:03
字體:
來源:轉載
供稿:網友

1、redis-benchmark
redis基準信息,redis服務器性能檢測

redis-benchmark -h localhost -p 6379 -c 100 -n 100000
100個并發連接,100000個請求,檢測host為localhost 端口為6379的redis服務器性能

[root@Architect redis-1.2.6]# redis-benchmark -h localhost -p 6379 -c 100 -n 100000====== PING ====== 10001 requests completed in 0.41 seconds 50 parallel clients 3 bytes payload keep alive: 10.01% 

2、redis-cli

redis-cli -h localhost -p 6380 monitor
Dump all the received requests in real time;
監控host為localhost,端口為6380,redis的連接及讀寫操作

[root@Architect redis-1.2.6]# redis-cli -h localhost -p 6380 monitor+OK+1289800615.808225 "monitor"+1289800615.839079 "GET" "name"+1289800615.853694 "PING"+1289800615.853783 "PING"+1289800615.854646 "PING"+1289800615.854974 "PING"+1289800615.857693 "PING"+1289800615.866862 "PING"+1289800615.871944 "PING"

redis-cli -h localhost -p 6380 info
Provide information and statistics about the server ;
提供host為localhost,端口為6380,redis服務的統計信息

[root@Architect redis-1.2.6]# redis-cli -h localhost -p 6380 inforedis_version:2.0.4redis_git_sha1:00000000redis_git_dirty:0arch_bits:32multiplexing_api:epollprocess_id:21990uptime_in_seconds:490580uptime_in_days:5connected_clients:103connected_slaves:0blocked_clients:0used_memory:4453240used_memory_human:4.25Mchanges_since_last_save:200bgsave_in_progress:0last_save_time:1290394640bgrewriteaof_in_progress:0total_connections_received:809total_commands_processed:44094018expired_keys:0hash_max_zipmap_entries:64hash_max_zipmap_value:512pubsub_channels:0pubsub_patterns:0vm_enabled:0role:slavemaster_host:localhostmaster_port:6379master_link_status:upmaster_last_io_seconds_ago:18db0:keys=1319,expires=0

3、redis-stat

redis-stat host localhost port 6380 overview
Print general information about a Redis instance;
實時打印出host為localhost,端口為6380,redis實例的總體信息

[root@Architect redis-1.2.6]# redis-stat port 6380 overview ------- data ------ ------------ load ----------------------------- - childs - keys   used-mem clients  requests      connections 1319   5.37M   103    44108021 (+44108021) 810         1319   5.38M   103    44108124 (+103)   810         1319   5.38M   103    44108225 (+101)   810         1319   5.39M   103    44108326 (+101)   810         1319   5.40M   103    44108427 (+101)   810         1319   5.41M   103    44108528 (+101)   810        

redis-stat host localhost port 6380 overview
Measure Redis server latency;
輸出host為localhost,端口為6380,redis服務中每個請求的響應時長

[root@Architect redis-1.2.6]# redis-stat port 6380 latency1: 0.16 ms2: 0.11 ms3: 0.15 ms4: 0.11 ms5: 0.18 ms6: 0.14 ms    

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表

圖片精選

主站蜘蛛池模板: 义乌市| 和林格尔县| 太谷县| 闽侯县| 文昌市| 宣武区| 石家庄市| 远安县| 乐昌市| 辽宁省| 玉屏| 英德市| 儋州市| 栾川县| 观塘区| 潜山县| 泗洪县| 大关县| 凤阳县| 桐城市| 略阳县| 昌宁县| 杨浦区| 建始县| 建水县| 浙江省| 长春市| 徐闻县| 乐昌市| 浠水县| 贵德县| 乌拉特中旗| 博客| 寿阳县| 岫岩| 梅河口市| 浦城县| 青铜峡市| 资兴市| 东乡| 开化县|