redis sentinel 正常启动 ./redis-sentinel sentinel.conf 就可以启动, 但是如果linux 操作系统(比如阿里云os)不支持ipv6,就会导致sentinel 启动失败,报 Creating Server TCP listening socket *:26379: unable to bind socket 失败, 这时候必须修改sentinel.conf

ECS Linux系统默认关闭了Ipv6的功能,所以 redis-sentinel 尝试在 ipv6 的网络接口上监听时,提示出错。可以在 sentinel.conf 里配置文件设置仅监听ipv4的网络接口,修改配置文件 sentinel.conf 在 定义监听端口一行前添加监听IP参数,如 bind 0.0.0.0 ,表示仅监听IPv4,然后重新启动Sentinel即可

相关文章:

  • 2021-09-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-07
  • 2021-04-01
  • 2021-10-13
猜你喜欢
  • 2021-05-06
  • 2021-10-22
  • 2021-11-29
  • 2021-10-07
  • 2021-12-20
  • 2021-06-17
  • 2021-08-07
相关资源
相似解决方案