Redis: How to access Redis log file

前端 未结 5 834
执笔经年
执笔经年 2020-12-13 12:10

Have Redis setup with ruby on ubuntu server, but can\'t figure out how to access its log file. Tutorial says it should be here:

/var/log/redis_6379.log
         


        
5条回答
  •  天命终不由人
    2020-12-13 12:44

    The log file will be where the configuration file (usually /etc/redis/redis.conf) says it is :)

    By default, logfile stdout which probably isn't what you are looking for. If redis is running daemonized, then that log configuration means logs will be sent to /dev/null, i.e. discarded.

    Summary: set logfile /path/to/my/log/file.log in your config and redis logs will be written to that file.

提交回复
热议问题