Errorlog或者是運行日志是任何一個軟件的運行中異常診斷必看的文件之一,折騰Redis的過程中以為有默認的錯誤日志(或啟動日志),不過一直沒有發現類似的日志文件,
在看了默認的配置文件之后,發現Redis默認並沒有配置ErrorLog,上面寫的很清楚,如果沒有指定logfile(的路徑),logs will be sent to /dev/null
# 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備份日志等等)
啟動日志的格式也是跟控制台的日志格式一樣。