当前位置:网站首页>redis连接错误:ERR Client sent AUTH, but no password is set解决方案2个
redis连接错误:ERR Client sent AUTH, but no password is set解决方案2个
2022-06-22 05:28:00 【fastjson_】
项目中使用jedis或redisson连接redis时,如果redis没有密码,但在配置文件中写为
spring:
redis:
database: 0
host: 127.0.0.1
password:
port: 6379
timeout: 10000通常会报错: ERR Client sent AUTH, but no password is set
原因分析:把上面的文字翻译其实就知道了,客户端设置了auth认证,但没设置密码。
解决方案一:
在redis配置文件中redis.conf加入:
requirePass: 你的密码解决方案二:
把上面的配置中password一行去掉,既然没密码,就不要写。
spring:
redis:
database: 0
host: 127.0.0.1
port: 6379
timeout: 10000方案二才是根本,既然没密码,就不要写。写个password,后面却没密码,当然要报错。
边栏推荐
- TIDB-performance overview面板
- 总有人问我:独立站该怎么玩?3个案例,你看完就懂了
- sourcetree报错ssh失败
- A piece of code to solve the problem of automatic disconnection of Google colab
- Graduation season | a new start, no goodbye
- Link a static library‘s all sections
- DTS migration script Oracle
- 记本地项目启动报错:无效的源发行版: 8
- [cloud native] 2.2 kubeadm create cluster
- P1160 队列安排
猜你喜欢

搜狗输入法无法输出中文

删除弹窗组件的封装使用
Talk about MySQL's locking rule "hard hitting MySQL series 15"

It's 2022. Don't you hurry to learn typescript?

畢業回饋!Apache Doris 社區所有貢獻者來領禮品啦!

Graduation season | a new start, no goodbye

风阀执行EN 1634-1耐火测试完整性能坚持 4小时吗?

Analysis of 43 cases of MATLAB neural network: Chapter 29 research on the application of limit learning machine in regression fitting and classification -- Comparative Experiment

2022 refrigeration and air conditioning equipment operation test paper and refrigeration and air conditioning equipment operation test skills

做事方法:3C 方案设计法
随机推荐
风阀执行EN 1634-1耐火测试完整性能坚持 4小时吗?
Squoosh - Google's free open source image compression tool, reducing the image size by 90%! Support API development calls
QEMU ARM interrupt system architecture
Topic selection system of college graduation design based on SSM
Kubernetes - bare metal cluster environment
rambbmitmq消费方
Current market situation analysis and investment analysis prospect report of global and Chinese ceramic capacitor industry 2022-2027
[issue 26] 123hr experience of Tencent teg+ operation development
Report on global and Chinese direct coupled actuator market demand and future development planning recommendations 2022-2027
Graduation feedback! All contributors of Apache Doris community come to receive gifts!
It's 2022. Don't you hurry to learn typescript?
中小企业签署ERP合同时,需要留意这几点
postmanUtils工具类,模拟postman的get,post请求
Analysis of T elevator repair in 2022 and simulation test questions of T elevator repair
基于WebUploader实现大文件分片上传
大厂晋升学习方法三:链式学习法
P1077 [noip2012 popularization group] flower display
北京密云区知识产权贯标的好处,补贴5-10万
Conversion between JSON, string and map
QEMU ARM interrupt system architecture 2