zoukankan      html  css  js  c++  java
  • Redis的Errorlog或者启动日志(错误日志)的配置

    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备份日志等等)
    启动日志的格式也是跟控制台的日志格式一样。

  • 相关阅读:
    source insight 使用介绍
    android 自定义progressBar
    appium环境安装
    js定义类的三种方法
    对象,函数,构造函数this,原型
    mindjet使用技巧
    在wamp下安装bugfree
    QTP
    powerdesigner使用
    随笔
  • 原文地址:https://www.cnblogs.com/wy123/p/9645225.html
Copyright © 2011-2022 走看看