文章目录
- 1、问题出现的背景
- 2、分析问题出现的原因
- 3、解决办法不用输入用户名直接输入密码即可
1、问题出现的背景
redis.clients.jedis.exceptions.JedisAccessControlException:
WRONGPASS invalid username-password pair or user is disabled.
2、分析问题出现的原因
查看我的yaml配置文件发现,我的redis根本就没有用户名,所以不用输入用户名,直接输入密码即可
spring:
main:
allow-bean-definition-overriding: true #当遇到同样名字的时候,是否允许覆盖注册
cloud:
sentinel:
transport:
dashboard: 192.168.74.148:8858
openfeign:
lazy-attributes-resolution: true
client:
config:
default:
connectTimeout: 30000
readTimeout: 30000
loggerLevel: basic
kafka:
bootstrap-servers: 192.168.74.148:9092
producer:
retries: 3 #设置大于0的值,则客户端会将发送失败的记录重新发送
acks: all
batch-size: 16384
buffer-memory: 33554432
key-serializer: org.apache.kafka.common.serialization.StringSerializer
value-serializer: org.apache.kafka.common.serialization.StringSerializer
consumer:
group-id: service-user
enable-auto-commit: true
auto-offset-reset: earliest
key-deserializer: org.apache.kafka.common.serialization.StringDeserializer
value-deserializer: org.apache.kafka.common.serialization.StringDeserializer
data:
redis:
host: 192.168.74.148
port: 6379
database: 0
timeout: 1800000
password: 123456
jedis:
pool:
max-active: 20 #最大连接数
max-wait: -1 #最大阻塞等待时间(负数表示没限制)
max-idle: 5 #最大空闲
min-idle: 0 #最小空闲