zoukankan      html  css  js  c++  java
  • Redis 出现NOAUTH Authentication required解决方案

    这个问题的原因是设置了密码,但是没有使用密码进行登录,如果你下载是被人的包,那么很有可能是有密码的

    解决方式 用密码登陆:我们输入 auth  123456#你刚才设置的密码

    前言
    标题很长哈!今天操作Redis的时候出现了MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error.这提示及其友好,虽长但我喜欢,框架只返回result=2并且又没有api文档,然而我就懵逼了,你咋不上天,我就立马上服务器,使用command操作,嘿嘿问题来了就去

    Redis问题
    MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error.
    Redis被配置为保存数据库快照,但它目前不能持久化到硬盘。用来修改集合数据的命令不能用。请查看Redis日志的详细错误信息。

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

    解决方案
    进入服务器后
    将stop-writes-on-bgsave-error设置为no

    命令 :   config  set  stop-write-on-bgsave-error no 

    127.0.0.1:6379> config set stop-writes-on-bgsave-error no


    清空 redis


    1.先确保redis进程存活

    ps -ef|grep redis

        1

    2.执行./redis-cli或者./redis-cli -h 127.0.0.1 -p 6379

    [root@slave bin]# /bin/redis-cli

        1

    3.执行dbsize命令

    127.0.0.1:6379> dbsize

        1

    4.清理

    127.0.0.1:6379> flushall

        1

    5.退出

    127.0.0.1:6379> exit





  • 相关阅读:
    git介绍
    Oracle '26-2月 -19 03.34.47.000000 下午' 字符串日期解析
    ProceedingJoinPoint 某些方法记录一下
    SpringBoot 2.X以上集成redis
    SpringBoot文件上传配置
    editmd输出到前端显示
    Thymeleaf Shiro标签
    Springboot 添加druid监控
    基于SpringBoot的博客项目
    SpringBoot默认首页配置
  • 原文地址:https://www.cnblogs.com/dwt520/p/13383886.html
Copyright © 2011-2022 走看看