#vi /etc/redis/redis.conf logfile "/var/log/redis/redis.log"
保存后退出vi, 重启redis服务,即可。
注意,如果不设置redis.conf 里的logfile。 就会导致redis无法写日志, 进而导致,无法把redis数据写入到磁盘文件里。
#vi /etc/redis/redis.conf logfile "/var/log/redis/redis.log"
保存后退出vi, 重启redis服务,即可。
注意,如果不设置redis.conf 里的logfile。 就会导致redis无法写日志, 进而导致,无法把redis数据写入到磁盘文件里。
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。