首頁 > 資料庫 > Redis > 主體

redis報錯Windows error 0x70的解決方法

發布: 2020-06-01 08:57:49
轉載
3092 人瀏覽過

redis報錯Windows error 0x70的解決方法

redis 嫌棄你記憶體不夠了,就給你不開第二個實例。 The Windows version of Redis allocates a large memory mapped file for sharing

#the heap with the forked process used in persistence operations.這句話說的很明白了

#解決辦法:

1:改redis.windows.conf中的maxheap參數

maxheap 10240000

這個方法我使用未能解決

##2:啟動加maxheap參數

redis-server.exe --maxheap 10240000

多少個0根據數據情況配置,不要太多了

D:\soft\redis-2.8.19>redis-server.exe
[6188] 25 Apr 17:24:16.819 #
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.
 
D:\soft\redis-2.8.19>redis-server.exe
[6420] 25 Apr 17:25:01.668 #
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知識請關注

redis入門教程欄。

以上是redis報錯Windows error 0x70的解決方法的詳細內容。更多資訊請關注PHP中文網其他相關文章!

相關標籤:
來源:cnblogs.com
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
最新問題
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!