In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces "what are redis management commands". In daily operation, I believe many people have doubts about redis management commands. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful for you to answer the doubts about "what are redis management commands?" Next, please follow the editor to study!
The redis manage connection command describes AUTH password verifies that the password is correct ECHO message prints a string PING to see if the service is running QUIT closes the current connection SELECT index switches to the specified database
Server
Server related commands
Command
Description
INFO
Get statistics for redis server
BGREWRITEAOF
Asynchronously perform an AOF (AppendOnly File) file rewrite operation
BGSAVE
Asynchronously save the data of the current database to disk in the background
CLIENT KILL [ip:port] [ID client-id]
Close client connection
CLIENT LIST
Get a list of client connections to the server
CLIENT GETNAME
Get the name of the connection
CLIENT PAUSE timeout
Stop running commands from the client within a specified period of time (in milliseconds)
CLIENT SETNAME connection-name
Sets the name of the current connection
CLUSTER SLOTS
Get the mapping array of cluster nodes
COMMAND
Get an array of Redis command details
COMMAND COUNT
Get the total number of Redis commands
COMMAND GETKEYS
Gets all the keys for a given command
TIME
Returns the current server time
COMMAND INFO command-name [command-name...]
Gets the array described by the specified Redis command
CONFIG GET parameter
Gets the value of the specified configuration parameter
CONFIG REWRITE
Rewrite the redis.conf configuration file specified when starting the Redis server
CONFIG SET parameter value
Modify redis configuration parameters without reboot
CONFIG RESETSTAT
Reset some statistics in the INFO command
DBSIZE
Returns the number of key in the current database
DEBUG OBJECT key
Get debugging information for key
DEBUG SEGFAULT
Let the Redis service crash
FLUSHALL
Delete all key for all databases
FLUSHDB
Delete all key of the current database
INFO [section]
Get all kinds of information and statistical values of Redis server
LASTSAVE
Returns the last time Redis successfully saved data to disk, expressed in UNIX timestamp format
MONITOR
Print out the commands received by the Redis server in real time for debugging
ROLE
Returns the role to which the master-slave instance belongs
SAVE
Save data to hard disk asynchronously
SHUTDOWN [NOSAVE] [SAVE]
Save data asynchronously to the hard disk and shut down the server
SLAVEOF host port
Converts the current server to a slave server (slave server) of the specified server
SLOWLOG subcommand [argument]
Manage slow logs for redis
SYNC
Internal commands for the copy function (replication)
At this point, the study of "what are the redis management commands" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.