Redis报错-(error) NOAUTH Authentication required.

安装过Redis之后,

如果之前在redis.windows-service.conf文件中有设置密码,

例如

# requirepass foobared
requirepass 123456

那么启动redis-cli.exe客户端之后,要先授权命令

auth 123456

这样Redis命令才能生效,否则会报错

(error) NOAUTH Authentication required.

原文地址:https://www.cnblogs.com/helenwq/p/11789313.html

时间: 2024-10-19 18:07:27

Redis报错-(error) NOAUTH Authentication required.的相关文章

Redis服务停止报错解决方案[NOAUTH Authentication required]

Redis服务器设置密码后,使用service redis stop 会出现以下信息: service redis stop Stopping ... OK (error) NOAUTH Authentication required. Waiting for Redis to shutdown ... Waiting for Redis to shutdown ... Waiting for Redis to shutdown ... Waiting for Redis to shutdown

Redis (error) NOAUTH Authentication required.解决方法

出现认证问题,应该是设置了认证密码,输入密码既可以啦 注意密码是字符串形式! [plain] view plain copy 127.0.0.1:6379> auth "yourpassword" 例如密码是'root',当出现认证问题时候,输入"auth 'root'"即可 [plain] view plain copy 127.0.0.1:6379> set name "hello" (error) NOAUTH Authenti

编译 redis 报错 error: jemalloc/jemalloc.h: No such file or directory

gcc编译redis时报错: zmalloc.h:50:31: error: jemalloc/jemalloc.h: No such file or directory zmalloc.h:55:2: error: #error "Newer version of jemalloc required" 原因是jemalloc重载了Linux下的ANSI C的malloc和free函数.解决办法:make时添加参数. make MALLOC=libc

Redis报错:DENIED Redis is running in protected mode

Redis默认配置是不需要密码认证的,也就是说只要连接的Redis服务器的host和port正确,就可以连接使用.这在安全性上会有一定的问题,所以需要启用Redis的认证密码,增加Redis服务器的安全性. 1. 修改配置文件 Redis的配置文件默认在/etc/redis.conf,找到如下行: #requirepass foobared 去掉前面的注释,并修改为所需要的密码: requirepass myPassword (其中myPassword就是要设置的密码) 2. 重启Redis 如

Redis 2.8.18 安装报错 error: jemalloc/jemalloc.h: No such file or directory

Redis是一个开源的使用ANSI C语言编写.支持网络.可基于内存亦可持久化的日志型.Key-Value数据库,并提供多种语言的API. 本文为大家讲解的是Redis 2.8.18 安装报错 error: jemalloc/jemalloc.h: No such file or directory解决方法,感兴趣的同学参考下. 错误描述 安装Redis 2.8.18时报错: zmalloc.h:50:31: error: jemalloc/jemalloc.h: No such file or

安装Scrapy报错 error: Microsoft Visual C++ 14.0 is required解决方法

[问题背景]:在Windows 10系统,pip install Scrapy,报错error: Microsoft Visual C++ 14.0 is required,还有提示Twisted需要安装. [解决方法步骤] 1.根据提示,去https://landinghub.visualstudio.com/visual-cpp-build-tools下载C++编译工具.但是,页面已经打不开,无法下载.  2.之前因需要安装uwsgi,在Windows 10 安装过MinGW,通过可以Min

mac brew install redis 报错

mac brew install redis 报错 /usr/local/opt/php55/bin/phpize /usr/local/opt/php55/bin/phpize: line 61: /usr/local/Library/ENV/4.3/sed: No such file or directory /usr/local/opt/php55/bin/phpize: line 62: /usr/local/Library/ENV/4.3/sed: No such file or di

springboot启动报错:"Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled."

报错内容 java.lang.Object.wait(Native Method)java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:41)2019-02-14 14:58:00.326 INFO 17688 --- [ main] Condition

连接redis报错MISCONF Redis is configured to save RDB s

连接redis报错MISCONF Redis is configured to save RDB snapshots date: Mon Nov 11 16:11:24 CST 2019 笔者:张首富 程序报错如下 redis.exceptions.ResponseError: MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands t