Redis 启动失败 Please see the documentation included with the binary distributions for more details on the --maxheap flag.
Redis 启动失败
错误信息如下:
The Windows version of Redis allocates a memory mapped heap for sharing with the forked process used for persistence operations. In order to share this memory, Windows allocates from the system paging file a portion equal to the size of the Redis heap. At this time there is insufficient contiguous free space available in the system paging file for this operation (Windows error 0x5AF). To work around this you may either increase the size of the system paging file, or decrease the size of the Redis heap with the --maxheap flag. Sometimes a reboot will defragment the system paging file sufficiently for this operation to complete successfully.
Please see the documentation included with the binary distributions for more details on the --maxheap flag.
大概的意思:
Windows 为 Redis 分配了内存映射,但是这个内存是共享的... ... 减少Redis内存的使用,启动的时候指定内存大小。
这个本身在网上有很多说明这个问题的帖子,可是还是有同学不会找。
所以,用这个去启动,也就是在命令后加上--maxheap 200m,我这是给初始化200M
D:\redisbin_x64\redis-server.exe D:\redisbin_x64\redis.conf --maxheap 200m
启动成功如下:
版权所属:SO JSON在线解析
原文地址:https://www.sojson.com/blog/242.html
转载时必须以链接形式注明原始出处及本声明。
如果本文对你有帮助,那么请你赞助我,让我更有激情的写下去,帮助更多的人。