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

リリース: 2020-06-01 08:57:49
転載
3269 人が閲覧しました

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 までご連絡ください。
人気のチュートリアル
詳細>
最新のダウンロード
詳細>
ウェブエフェクト
公式サイト
サイト素材
フロントエンドテンプレート
私たちについて 免責事項 Sitemap
PHP中国語ウェブサイト:福祉オンライン PHP トレーニング,PHP 学習者の迅速な成長を支援します!