redis error什么意思

redis error就是redis数据库和其组合使用的部件出现错误,这个出现的错误有很多种,在此举例几种:

redis error什么意思

Redis被配置为保存数据库快照,但它目前不能持久化到硬盘。用来修改集合数据的命令不能用。请查看Redis日志的详细错误信息。

原因:(推荐学习:Redis视频教程)

强制关闭Redis快照导致不能持久化。

解决方案:

127.0.0.1:6379> set name "hello"  
(error) NOAUTH Authentication required.  
127.0.0.1:6379> (error) NOAUTH Authentication required.  
(error) ERR unknown command '(error)'  
127.0.0.1:6379> auth "root"

运行config set stop-writes-on-bgsave-error no 命令后,关闭配置项stop-writes-on-bgsave-error解决该问题。

root@ubuntu:/usr/local/redis/bin# ./redis-cli
127.0.0.1:6379> config set stop-writes-on-bgsave-error no
OK
127.0.0.1:6379> lpush myColour "red"
(integer) 1

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

127.0.0.1:6379> auth "yourpassword"

例如密码是‘root’,当出现认证问题时候,输入“auth ‘root’”即可

可以进入

127.0.0.1:6379> auth "root"

OK

creating server tcp listening socket 127.0.0.1:6379: bind No error

window下安装redis报错:

creating server tcp listening socket 127.0.0.1:6379: bind No error的解决方案

如下按顺序输入如下命令就可以连接成功

1. redis-cli.exe

2. shutdown

3. exit

4. redis-server.exe redis.windows.conf

更多Redis相关技术文章,请访问Redis数据库使用入门教程栏目进行学习!

以上就是redis error什么意思的详细内容,更多请关注https://www.sxiaw.com/其它相关文章!