redis shutdown (error) ERR Errors trying to SHUTDOWN. Check logs.
??? 1.打開(kāi)配置文件redis.conf? 我的在/usr/local/redis 下
??? 2.修改log路徑(此步奏是為了查看使用 shutdown 指令 出錯(cuò)在哪)
????? sudo vi redis.conf
???? 找到 logfile ""??
?? ? 修改為: logfile /usr/local/redis/redis_log/redis_log.log
???? 如果/usr/local/redis 下面沒(méi)有相應(yīng)的文件夾和文件對(duì)應(yīng)創(chuàng)建且 賦予讀寫(xiě)權(quán)限
??? 使用指令: sudo chmod 777 redis_log.log
? 3.將dir /. 修改為dir/usr/local/redis/redis_dbfile/
# 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 /usr/local/redis/redis_dbfile/
???? 4.若使用shutdown 還是顯示(error) ERR Errors trying to SHUTDOWN. Check logs.? 則可以查看redis_log.log文件
我出現(xiàn)? 文件夾沒(méi)有足夠權(quán)限 和 打開(kāi)文件過(guò)多的情況 只要對(duì)應(yīng) 賦予權(quán)限 kill 掉文件夾進(jìn)程即可??
???? 解決后即可以使用 shutdown 指令顯示 not connected
總結(jié)
以上是生活随笔為你收集整理的redis shutdown (error) ERR Errors trying to SHUTDOWN. Check logs.的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 墙面采用内石膏抹灰机脚线可以用t泥砂浆抹
- 下一篇: awaitUntil() 方法的使用