您的位置:首页 > 数据库 > Redis

mac redis安装过程中 关闭服务redis报错 redis (error) ERR Errors trying to SHUTDOWN. Check logs.

2017-10-02 08:29 465 查看
小编这几日刚入手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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐