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 > Database >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to view redis cluster information. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
Tip:
The IP in this article refers to the IP,password of the server where redis is installed. It refers to the password of redis.
View cluster-related information
1. Cluster status
Redis-cli-h ip-p 9379-a password cluster info
two。 Cluster node information
Redis-cli-h ip-p 9379-a password cluster nodes
3. Node memory, cpu, number of key and other information (each node needs to view)
Redis-cli-h ip-p 9379-a password info
4. View the key from the redis cluster (just connect to the master node to see)
a. View all key of this node
Redis-cli-h ip-p 9379-a password keys *
b. Check the value of key
Redis-cli-h ip-p 9379-a password-c get key
c. Check the validity period of key
Redis-cli-h ip-p 9379-a password-c ttl key
View the data stored in redis
1.ssh root@ip
2.Password: password
3.keys *
4. View the remaining expiration time of the stored data
Ttl key
4. View the type of key (string,set,list,hash)
Type key
5. View the value of key (string type)
Get key
6. View the value of key (set type)
Scard key / / get the number of elements in the set collection smembers key / / View the contents of the set
7. View the value of key (hash type)
Hlen key / / get the number of fields of the key key hgetall key / / return all fields of the key key and their values hkeys key / / get the names of all fields in the key key hvals key / / get the values of all fields in the key key, this is the end of the article on "how to view redis cluster information", I hope the above content can be of some help to you, so that you can learn more knowledge, if you think the article is good Please share it for more people to see.
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.