Redis无法启动
今天在启动Redis时提示以下错:
C:\Java\redis2817>redis-server.exe redis.windows.conf
[5268] 23 Apr 11:45:22.696 #
The Windows version of Redis allocates a large memory mapped file for sharing
the heap with the forked process used in persistence operations. This file
will be created in the current working directory or the directory specified by
the ‘heapdir’ directive in the .conf file. Windows is reporting that there is
insufficient disk space available for this file (Windows error 0x70).
You may fix this problem by either reducing the size of the Redis heap with
the –maxheap flag, or by moving the heap file to a local drive with sufficient
space.
Please see the documentation included with the binary distributions for more
details on the –maxheap and –heapdir flags.
Redis can not continue. Exiting.
原因分析:
经过分析,原来是最大堆大小“maxheap ”配置的问题,是因为可用的内存不足,不 能满足maxheap配置的条件,所以无

在尝试启动Redis时遇到了错误,由于Windows版本的Redis在持久化操作中使用大内存映射文件,系统报告磁盘空间不足。解决方法包括通过--maxheap标志减少Redis堆大小或更改heapdir到有足够空间的驱动器。通过修改配置文件'redis.windows.conf'中的'maxheap'值,将默认的1024000000改为更小的值如51200000,成功解决了启动问题。
最低0.47元/天 解锁文章

被折叠的 条评论
为什么被折叠?



