redis- redis- View Log View Log

turn:

redis- View Log

redis default, will not generate a log file, so you need to configure

 

Configuration:

1, redis first find the configuration file

2, open the configuration file, find the logfile (there may be multiple logfile, look loglevel next to that), or directly search logfile ""

3, filled into the path behind the logfile quotes, for example: logfile "d: /redislog/redis.log" (note the direction of the diagonal member, the diagonal member and windows cmd direction is opposite)

4, according to write their own path, built manually log folder, log files do not build, build to a folder you can, for example, I manually created d: \ redislog folder

5, save the configuration file to the startup configuration file redis, then redis this time frame will start a black box, what outputs are not, that's right (because the input to the log file to the full)

Then you can go to d: \ redislog \ redis.log folder to view the log

 

Other considerations:

1, redis must start with the profile, If you start it, it will use the default configuration (but this default configuration file does not exist, so do not want to change it).

2, if there is indication of how not specify a configuration file or the configuration file can not be read (wrong path)

3, loglevel is used to set the log level, specifically the configuration file to see note above

redis default, will not generate a log file, so you need to configure

 

Configuration:

1, redis first find the configuration file

2, open the configuration file, find the logfile (there may be multiple logfile, look loglevel next to that), or directly search logfile ""

3, filled into the path behind the logfile quotes, for example: logfile "d: /redislog/redis.log" (note the direction of the diagonal member, the diagonal member and windows cmd direction is opposite)

4, according to write their own path, built manually log folder, log files do not build, build to a folder you can, for example, I manually created d: \ redislog folder

5, save the configuration file to the startup configuration file redis, then redis this time frame will start a black box, what outputs are not, that's right (because the input to the log file to the full)

Then you can go to d: \ redislog \ redis.log folder to view the log

 

Other considerations:

1, redis must start with the profile, If you start it, it will use the default configuration (but this default configuration file does not exist, so do not want to change it).

2, if there is indication of how not specify a configuration file or the configuration file can not be read (wrong path)

3, loglevel is used to set the log level, specifically the configuration file to see note above

Guess you like

Origin www.cnblogs.com/libin6505/p/11925945.html