内容简介: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的过程,将会把启动过程中的日志信息写入日志文件(包括启动错误日志信息)
写入日志的格式也是跟控制台的日志格式一样。
以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网
猜你喜欢:- Hadoop 2.8的安装、配置与启动
- mac下eclipse配置tomcat无法启动问题
- CentOS7 linux 安装 jdk、tomcat + 配置 tomcat 开机启动 + tomcat 快捷启动命令
- duic-spring-cloud-config-client 更新,简化启动配置
- Spring Web项目spring配置文件随服务器启动时自动加载
- 阿里云服务器安装配置redis的方法并且加入到开机启动(推荐)
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Masterminds of Programming
Federico Biancuzzi、Chromatic / O'Reilly Media / 2009-03-27 / USD 39.99
Description Masterminds of Programming features exclusive interviews with the creators of several historic and highly influential programming languages. Think along with Adin D. Falkoff (APL), Jame......一起来看看 《Masterminds of Programming》 这本书的介绍吧!