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或者启动日志的配置


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

查看所有标签

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

Making Things See

Making Things See

Greg Borenstein / Make / 2012-2-3 / USD 39.99

Welcome to the Vision Revolution. With Microsoft's Kinect leading the way, you can now use 3D computer vision technology to build digital 3D models of people and objects that you can manipulate with g......一起来看看 《Making Things See》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

html转js在线工具
html转js在线工具

html转js在线工具