3
我已經得到了定位在主機上運行,但無法找到日誌位置。 根據redis文檔:http://download.redis.io/redis-stable/sentinel.conf該conf文件沒有日誌信息。如何配置redis定點日誌文件的位置
- 我該如何啓用日誌記錄功能?
我已經得到了定位在主機上運行,但無法找到日誌位置。 根據redis文檔:http://download.redis.io/redis-stable/sentinel.conf該conf文件沒有日誌信息。如何配置redis定點日誌文件的位置
以下行添加到您的配置文件(/etc/redis-sentinel.conf
):
logfile "/var/log/redis/redis-sentinel.log"
接下來,你可以看到日誌:
tail -f /var/log/redis/redis-sentinel.log
添加以下項目到您的配置文件:'日誌文件「path/to/file.log」 –
謝謝for_stack。有效。 – psingh