今天公司停电,测试服务器所有程序宕机,来电后从其服务启动不来,报错误如下:
Error creating bean with name 'enableRedisKeyspaceNotificationsInitializer'
defined in class path resource
[org/springframework/session/data/redis/config/annotation/web/http/RedisHttpSessionConfiguration.class]:
Invocation of init method failed;
nested exception is org.springframework.data.redis.RedisSystemException:
Error in execution;
nested exception is io.lettuce.core.RedisCommandExecutionException:
NOAUTH Authentication required.
根据报错信息分析,是redis有问题:
第一步:查看redis是否正常启动
第二步:查看redis密码是否正确
第三步:通过redis-cli命令在服务器上测试,redis是否能正常访问