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





  • 相关阅读:
    [Spring] ClassPathXmlApplicationContext类
    [mybatis-spring] Transaction 事务/事务处理/事务管理器
    [mybatis-spring]sqlSessionFactoryBean
    [ /* 和 / 的区别 ] Difference between / and /* in servlet mapping url pattern
    [Database]各数据库连接配置:Oracle:thin 数据库连接/MySQL 连接配置
    MySQL utf8 和 utf8mb4 的区别
    MySQL 8.0 安装时 Authentication Method
    bootstrap
    Batch
    mysqlsh : mysql shell tutorial
  • 原文地址:https://www.cnblogs.com/dwt520/p/13383886.html
Copyright © 2011-2022 走看看