启动Redis报错: # QForkMasterInit: system error caught. error code=0x00000070, message=CreateFileMapping failed.: no space on device

刚下载的Redis2.8.9,没做任何配置,直接用redis-server.exe redis.windows.conf启动,就报

# QForkMasterInit: system error caught. error code=0x00000070, message=CreateFileMapping failed.: no space on device

经调整后,磁盘空间有40G,关掉了一切可能占用内存的程序,仍然报错,这说明肯定不是因为物理限制导致的问题,询问kimi,没有给出有效的答复。询问通义,告知希望看到redis.conf文件中的内容。

 

于是把文件内容复制给它,经分析后,告知“内存限制未配置,这是关键问题之一。Redis 默认不限制内存使用,在 Windows 上尤其容易导致 CreateFileMapping 失败”,按照提示,设置了

maxmemory 536870912

 

重启Redis,问题解决。

 

此问题的解决,说明了通义强于kimi,它给出了需要用户做什么,才有可能解决问题。而kimi只是就事论事。 

 

posted @ 2025-06-24 15:30  火军刀  阅读(31)  评论(0)    收藏  举报