当前位置:网站首页>redis.clients.jedis.exceptions.JedisDataException: NOAUTH Authentication required
redis.clients.jedis.exceptions.JedisDataException: NOAUTH Authentication required
2022-06-12 16:36:00 【学无止境小奇】
真正的大师永远怀着一颗学徒的心
哈喽!大家好,我是小奇,一位程序员界的学徒
小奇打算以轻松幽默的对话方式来分享一些技术,如果你觉得通过小奇的文章学到了东西,那就给小奇一个赞吧
文章持续更新,可以微信搜索【小奇JAVA面试】第一时间阅读,回复【资料】更有我为大家准备的福利哟!回复【项目】有我为大家准备的一些项目源码。回复【简历模板】有我为大家准备的简历模板。

文章目录
一、异常信息
1、redis.clients.jedis.exceptions.JedisDataException: NOAUTH Authentication required
表示redis设置了密码,但是你用jedis连接的时候没有配置密码

二、解决方式
1、在jedis中添加密码
jedis.auth(“你的密码”);

2、将redis的密码注释掉
找到redis.conf配置文件,将requirepass注释掉

然后重新启动
进入redis客户端,在bin目录下
./redis-cli

然后输入密码,因为我们之前有密码,修改配置文件后没有重启生效,所有现在还是有密码,需要输入密码进入redis客户端中
命令auth 你的密码
然后执行关闭redis命令
shutdown
然后重新启动redis,还是在bin目录下
./redis-server redis.conf 这是指定你的配置文件进行启动
三、总结
这里的相关内容还没有整理完毕,文章后面持续更新,建议收藏。
文章中涉及到的命令大家一定要像我一样每个都敲几遍,只有在敲的过程中才能发现自己对命令是否真正的掌握了。
如果觉得我的文章还不错的话就点个赞吧,另外可以微信搜索【小奇JAVA面试】第一时间阅读,回复【资料】更有我为大家准备的福利哟!回复【项目】有我为大家准备的一些项目源码。回复【简历模板】有我为大家准备的简历模板。
边栏推荐
- Analysis of Nacos config dynamic refresh source code
- 添加静态路由
- pbootcms的if判断失效直接显示标签怎么回事?
- Postgresql错误码是如何构造的
- h t fad fdads
- Joint recruitment notice of ganfei research group of Wuhan University and xuzhenjiang research group of Nanchang University
- Project training of Shandong University rendering engine system (IV)
- Swin transformer code explanation
- What's the matter with pbootcms' if judgment failure and direct display of labels?
- RMI, JNDI, LDAP introduction +log4j vulnerability analysis
猜你喜欢
![[research] reading English papers -- the welfare of researchers in English poor](/img/8a/671e6cb6a3f4e3b84ea0795dc5a365.png)
[research] reading English papers -- the welfare of researchers in English poor

超详细干货!Docker+PXC+Haproxy搭建高可用强一致性的MySQL集群

Overview of webrtc's audio network Countermeasures

Swin Transformer代码讲解

程序员爆料:4年3次跳槽,薪资翻了3倍!网友:拳头硬了......

Leetcode 2194. Cellules dans une plage dans un tableau Excel (OK, résolu)

Contract awarding and AQS

Swin transformer code explanation

Programmers broke the news: 3 job hopping in 4 years, and the salary has tripled! Netizen: the fist is hard

Leetcode 2194. Excel 表中某个范围内的单元格(可以,已解决)
随机推荐
Project training of Shandong University rendering engine system (VI)
js监听用户是否打开屏幕焦点
The C programming language (version 2) notes / 8 UNIX system interface / 8.1 file descriptor
Acwing 1927 automatic completion (knowledge points: hash, bisection, sorting)
QCustomplot笔记(一)之QCustomplot添加数据以及曲线
calibration of sth
33-【go】Golang sync.WaitGroup的用法—保证go协程执行完毕,主协程才退出
mysql语句
从50亿图文中提取中文跨模态新基准Zero,奇虎360全新预训练框架超越多项SOTA
[raspberry pie]: (IV) camera advanced
数据库的三大范式
JS monitors whether the user opens the screen focus
Cookies and sessions
MySQL statement
Nacos Config 动态刷新源码剖析
Canvas image processing (Part 1)
[MySQL] internal connection, external connection and self connection (detailed explanation)
33-【go】Golang sync. Usage of waitgroup - ensure that the go process is completed before the main process exits
SwinTransformer网络架构
WebRTC 的音频网络对抗概述