Redis的Errorlog或者启动日志的配置

栏目: 数据库 · 发布时间: 7年前

内容简介: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

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的过程,将会把启动过程中的日志信息写入日志文件(包括启动错误日志信息)

写入日志的格式也是跟控制台的日志格式一样。

Redis的Errorlog或者启动日志的配置


以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Beginning iPhone and iPad Web Apps

Beginning iPhone and iPad Web Apps

Chris Apers、Daniel Paterson / Apress / 2010-12-15 / USD 39.99

It seems that everyone and her sister has developed an iPhone App—everyone except you, the hard-working web professional. And now with the introduction of the iPad, you may even feel farther behind. B......一起来看看 《Beginning iPhone and iPad Web Apps》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

SHA 加密
SHA 加密

SHA 加密工具

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具