In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to view the redis log, I hope you will learn a lot after reading this article, let's discuss it together!
Redis View Log
By default, redis does not generate log files, so you need to configure
Configuration method
1. First find the configuration file of redis
2. Open the configuration file and find logfile (there may be multiple logfile, identify the one with loglevel next to it), or search logfile "" directly.
3. Fill the path in quotation marks after the logfile, for example: logfile "d:/redislog/redis.log" (pay attention to the direction of the diagonal, which is opposite to the diagonal in windows cmd)
4. Build the log folder manually according to the path written by yourself. You don't need to build the log file, but you can build it to the folder. For example, I manually established the d:\ redislog folder.
5. Save the configuration file and start redis with this configuration file, and then the startup box of redis will become a black box with no output, which is right (because the input is all written to the log file)
Then you can go to the d:\ redislog\ redis.log folder to view the logs (redis tutorial)
Matters needing attention
1. Redis must be started with a configuration file, and if it starts directly, it will use the default configuration (and this default configuration file does not exist, so don't want to change it).
2. If prompted, the configuration file is not specified or cannot be read (path error)
3. Loglevel is used to set the log level. For more information, please see the above comments in the configuration file.
After reading this article, I believe you have a certain understanding of the method of viewing the redis log, want to know more about it, welcome to follow the industry information channel, thank you for reading!
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.