Errorlog或者是运行日志是任何一个软件的运行中异常诊断必看的文件之一,折腾Redis的过程当中觉得有默认的错误日志(或启动日志),不过一直没有发现相似的日志文件,
在看了默认的配置文件以后,发现Redis默认并无配置ErrorLog,上面写的很清楚,若是没有指定logfile(的路径),logs will be sent to /dev/nullredis
# Specify the log file name. Also the empty string can be used to force
# Redis to log on the standard output. Note that if you use standard
# output for logging but daemonize, logs will be sent to /dev/null
logfile ""日志
所以在给logfile "/usr/local/redis5/redis_log.log"指定一个文件以后,启动Redis的过程,将会把启动过程当中的日志信息写入日志文件(包括启动错误日志信息,运行日志,bgsave备份日志等等)
启动日志的格式也是跟控制台的日志格式同样。blog