redis-server.exe redis.windows.conf
使用上面命令启动redis服务的时候报了以下错误信息:
The Windows version of Redis allocates a memory mapped heapforsharingwith
the forkedprocess used for persistence operations. In order to share this
memory, Windows allocates from the system paging file a portion equal tothe
size ofthe Redisheap. At this time there is insufficient contiguousfree
spaceavailable in the system paging fileforthisoperation(Windows error
0x5AF). To work around this you may either increase the size ofthe system
pagingfile, or decrease the size of theRedis heap with the --maxheap flag.
Sometimesa reboot willdefragment the system paging file sufficiently for
thisoperation tocomplete successfully.
Please see the documentationincluded with the binary distributionsformore
details onthe --maxheap flag.
使用--maxheap标志。
有时重启将充分整理系统分页文件(重启可以解决)
redis-server.exe redis.windows.conf --maxheap 200m