In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
■ redis-benchmark testing tool
-h: specify the server hostname
-p: specify the server port
-c: specify the number of concurrent connections
-n: specify the number of requests
-d: specifies the data size of the SET/ get value in bytes
-Q: mandatory launch of redis. Show only query/ secvalue
■ redis-benchmark testing tool
● sends 100 to the redis server with IP address 192.168.10.161 and port 6379
Test performance with 100000 requests and concurrent connections
/ usr/local/redis/bin/redis-benchmark-h 192.168.1.10-p 6379-c 100-n 100000
● tests the performance of packets with an access size of 100byte
/ usr/local/redis/bin/redis-benchmark-h 192.168.1.10-p 6379-Q-d 100
-- multiple database operations-
-multiple data switching
0-15 Redis has 16 databases by default, which are independent and do not interfere with each other.
Select 10 # switch to database 10
192.168.1.10 Virgo 6379 > move demo 2
(integer) 1
192.168.1.10 Virgo 6379 > select 2
OK
192.168.1.10 keys 6379 [2] >
1. "demo" # move the key demo to database 2
192.168.1.10 flushdb 6379 [2] > clear all data in the library
OK
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.