Heim  >  Artikel  >  Datenbank  >  Lösung für den Redis-Fehler Windows-Fehler 0x70

Lösung für den Redis-Fehler Windows-Fehler 0x70

尚
nach vorne
2020-06-01 08:57:493225Durchsuche

Lösung für den Redis-Fehler Windows-Fehler 0x70

Redis geht davon aus, dass Sie nicht über genügend Speicher verfügen, und öffnet daher keine zweite Instanz für Sie. Die Windows-Version von Redis reserviert eine große Speicherzuordnungsdatei für die gemeinsame Nutzung

des Heaps mit dem bei Persistenzvorgängen verwendeten Fork-Prozess. Dieser Satz macht es sehr klar

Lösung:

1: Ändern Sie den Maxheap-Parameter in redis.windows.conf

maxheap 10240000

Ich konnte das Problem mit dieser Methode nicht lösen

2: Beginnen Sie mit dem Hinzufügen des Maxheap-Parameters

redis-server.exe --maxheap 10240000

Wie viele Nullen werden entsprechend der Datensituation konfiguriert, nicht zu viele

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.

Für weitere Redis-Kenntnisse achten Sie bitte auf Redis-Einführungs-TutorialSpalte.

Das obige ist der detaillierte Inhalt vonLösung für den Redis-Fehler Windows-Fehler 0x70. Für weitere Informationen folgen Sie bitte anderen verwandten Artikeln auf der PHP chinesischen Website!

Stellungnahme:
Dieser Artikel ist reproduziert unter:cnblogs.com. Bei Verstößen wenden Sie sich bitte an admin@php.cn löschen