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 分配了內(nèi)存映射,但是這個內(nèi)存是共享的... ... 減少Redis內(nèi)存的使用,啟動的時候指定內(nèi)存大小。
這個本身在網(wǎng)上有很多說明這個問題的帖子,可是還是有同學不會找。
所以,用這個去啟動,也就是在命令后加上--maxheap 200m,我這是給初始化200M
D:\redisbin_x64\redis-server.exe D:\redisbin_x64\redis.conf --maxheap 200m啟動成功如下:
版權(quán)所屬:SO JSON在線解析
原文地址:http://suancuo.cn/blog/242.html
轉(zhuǎn)載時必須以鏈接形式注明原始出處及本聲明。
如果本文對你有幫助,那么請你贊助我,讓我更有激情的寫下去,幫助更多的人。
