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

本文介绍了一种解决Redis服务无法正常关闭的问题的方法。通过修改redis.conf配置文件中的目录路径设置,成功解决了服务关闭时出现的错误。文章还提供了具体的步骤指导。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

小编这几日刚入手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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值