ホームページ  >  記事  >  データベース  >  Redis エラー Windows エラー 0x70 の解決策

Redis エラー Windows エラー 0x70 の解決策

尚
転載
2020-06-01 08:57:493225ブラウズ

Redis エラー Windows エラー 0x70 の解決策

redis はメモリが足りないと判断するため、2 番目のインスタンスを開きません。 Windows バージョンの Redis は、永続化操作で使用されるフォークされたプロセスとヒープを共有するために、大きなメモリ マップ ファイルを割り当てます。この文は、それを非常に明確にします。

解決策:

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 エラー 0x70 の解決策の詳細内容です。詳細については、PHP 中国語 Web サイトの他の関連記事を参照してください。

声明:
この記事はcnblogs.comで複製されています。侵害がある場合は、admin@php.cn までご連絡ください。