正常redis-server可以通过配置文件来指定守护进程启动以及指定日志路径,但sentinel就不一样了。
正常启动redis的sentinel时,进程会直接在前台跑,一退出sentinel进程就关了。

解决办法:

在sentinel的配置文件中添加以下内容:

[root@redis_01 redis]# vim sentinel.conf 
daemonize yes
logfile "/var/log/sentinel_log.log"

 

相关文章:

  • 2022-01-18
  • 2022-12-23
  • 2022-12-23
  • 2022-03-01
  • 2021-10-05
  • 2021-11-16
猜你喜欢
  • 2022-12-23
  • 2021-05-25
  • 2021-11-29
  • 2021-07-05
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案