In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
What is the path to redis's log? Perhaps many people do not understand, in order to let you understand better, the editor summed up the following content, I hope you can gain something according to this article.
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 log.
Other considerations:
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 it appears
Prompt, indicating that no configuration file is 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 the above, do you have any further understanding of the log configuration of redis? If you want to know more about it, you are 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.