1. 程式人生 > >redis報錯 處理

redis報錯 處理

1、連結redis叢集報錯

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is redis.clients.jedis.exceptions.JedisClusterException: CLUSTERDOWN Hash slot not served
redis 叢集沒有啟動

檢查redis節點配置 重新建立叢集

./redis-cli  --cluster  create   127.0.0.1:7000 127.0.0.1:7001 127.0.0.1:7002 127.0.0.1:7003 127.0.0.1:7004 127.0.0.1:7005 --cluster-replicas 1