In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-23 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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
[oracle@tdsogg tmp] $crontab-lump 5 * sh / tmp/delete.sh*/5 * / tmp/delete.sh5 * sh /
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.