小编这几日刚入手redis 安装过程一直是一帆风顺,无奈在最后关闭redis的服务的时候,redis服务报错redis (error) ERR Errors trying to SHUTDOWN. Check logs.,怎么关都关不掉,百度一番,信息很少,无奈多次尝试,终于解决。方法如下:
打开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 ./
这一段
把die ./改为相应的目录,如"dir /home/distance/redis_dbfiles/"(这里需要注意最后的斜杠不能忘记,如果缺失斜杠可能会解析为文件而非目录),保存。
参考文献:
redis的安装: http://www.cnblogs.com/chinesern/p/5580665.html
问题的解决:http://www.cnblogs.com/distanceN/p/6243616.html