網站首頁 編程語言 正文
org.springframework.data.redis.RedisSystemException: Error in execution; nes遇到springboot連接Redis報錯
作者:Casey·Hu 更新時間: 2022-05-25 編程語言org.springframework.data.redis.RedisSystemException: Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: NOAUTH Authentication required.
這個前提是要檢查一下Redis服務是否啟動
在使用springboot的2.2.6.RELEASE版本連接Redis的時候,啟動報錯
配置文件是如下
spring.redis.host=127.0.0.1
spring.redis.port=6379
報錯原因是在安裝配置Redis的時候沒有給Redis設置密碼
現在要設置密碼,在springboot配置文件中添加上即可
找到Redis的安裝目錄,看見 redis.windows.conf 文件
添加修改 requirepass屬性
然后去安裝目錄找到
1.設置密碼:config set requirepass “123456”
2.連接redis,認證:auth 123456
最后在配置文件中加上密碼就行了
原文鏈接:https://blog.csdn.net/qq_43658218/article/details/122521138
相關推薦
- 2023-07-15 oracle查看死鎖以及處理死鎖
- 2023-12-16 SpringBoot 配置文件使用@ @取值
- 2022-07-16 Linux中啟動Docker容器報錯:Error response from daemon: dri
- 2022-02-28 Error: clean-webpack-plugin only accepts an option
- 2023-04-01 一文帶你深入了解Python中的二次移動平均法_python
- 2022-07-13 Zookeeper集群 + Kafka集群
- 2022-05-13 深度優先搜索之八皇后問題
- 2022-07-14 Python中添加搜索路徑的方法實例_python
- 最近更新
-
- window11 系統安裝 yarn
- 超詳細win安裝深度學習環境2025年最新版(
- Linux 中運行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎操作-- 運算符,流程控制 Flo
- 1. Int 和Integer 的區別,Jav
- spring @retryable不生效的一種
- Spring Security之認證信息的處理
- Spring Security之認證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權
- redisson分布式鎖中waittime的設
- maven:解決release錯誤:Artif
- restTemplate使用總結
- Spring Security之安全異常處理
- MybatisPlus優雅實現加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務發現-Nac
- Spring Security之基于HttpR
- Redis 底層數據結構-簡單動態字符串(SD
- arthas操作spring被代理目標對象命令
- Spring中的單例模式應用詳解
- 聊聊消息隊列,發送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠程分支