在fork()的运营总页面文件承诺将最大程度的发挥左右:
(size of physical memory) + (2 * size of maxheap)
例如,对于物理内存8GB的机器上,最大页面文件提交与默认maxheap大小将为(8)+(2 * 8)GB或24GB。
如果你不给任何提示,Redis的,你得到类似如下的错误:
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.
为了绕过这个限制,开始Redis的时候指定-maxheap标志,使用值是有关您的机器:
redis-server –-maxheap 1gb
链接:Installing Redis Cache Locally in a Development Environment
非常感谢很多人在百万答案中的一个,我到处寻找这个你做了我的一天:) :) –
非常感谢:-) – Cristiana214
不要复制粘贴运行字符串。首先有错误' - '。使用这个:'redis-server --maxheap 1gb' – Alexmelyon