redis报(error) ERR Errors trying to SHUTDOWN. Check logs.
Posted Gnnnny
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了redis报(error) ERR Errors trying to SHUTDOWN. Check logs.相关的知识,希望对你有一定的参考价值。
今天重启redis 无法正常关闭报(error) ERR Errors trying to SHUTDOWN. Check logs.错误
[[email protected] src]$ redis-cli -p 6379 shutdown (error) ERR Errors trying to SHUTDOWN. Check logs.
首先检查一下是否是权限的问题,因为在shutdown命令的时候,会进行save操作,而save需要操作dump.rdb文件,如果没有权限则会报这个错.
如果权限没问题 打开redis安装目录下的redis.conf找到
# The working directory. # # The DB will be written inside this directory, with the filename specified # above using the ‘dbfilename‘ configuration directive. # # The Append Only File will also be created inside this directory. # # Note that you must specify a directory here, not a file name. dir ./
把dir ./改为相应的目录,如“dir /home/distance/redis_dbfiles/”(这里需要注意最后的斜杠不能忘记,如果缺失斜杠可能会解析为文件而非目录),保存。
再次尝试 成功启动
以上是关于redis报(error) ERR Errors trying to SHUTDOWN. Check logs.的主要内容,如果未能解决你的问题,请参考以下文章
问题解决(error) ERR Errors trying to SHUTDOWN. Check logs
ceph集群报错:HEALTH_ERR 1 pgs inconsistent; 1 scrub errors
安装Redis之后,报(error) ERR Client sent AUTH, but no password is set
org.redisson.client.RedisException: ERR Error running script,redis连接集群错误
在angular中用node.js连接redis时遇到的问题——process is not defined at Object../node_modules/redis-errors/ind