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





  • 相关阅读:
    金蝶k3 显示BOS序时簿并返回选中的值
    金蝶K3bos插件操作另一张单据
    H2.64的远程回放--开篇
    监控外网访问的几种方式
    ilbc编解码
    windows系统上安装与使用Android NDK r5 (转)
    安卓与PC网络对接实现视频实时播放
    WDR7500 花生壳问题
    要确保任何一次员工的晋升都符合公司的利益
    关于“部门建设”
  • 原文地址:https://www.cnblogs.com/dwt520/p/13383886.html
Copyright © 2011-2022 走看看