Maison  >  Article  >  base de données  >  Solution à l'erreur Redis Erreur Windows 0x70

Solution à l'erreur Redis Erreur Windows 0x70

尚
avant
2020-06-01 08:57:493225parcourir

Solution à l'erreur Redis Erreur Windows 0x70

Redis pense que vous n'avez pas assez de mémoire, il n'ouvrira donc pas de deuxième instance pour vous. La version Windows de Redis alloue un gros fichier mappé en mémoire pour le partage

le tas avec le processus forké utilisé dans les opérations de persistance

Solution :

. 1 : Modifiez le paramètre maxheap dans redis.windows.conf

maxheap 10240000

Je n'ai pas réussi à résoudre le problème en utilisant cette méthode

2 : Commencez à ajouter le paramètre maxheap

redis-server.exe --maxheap 10240000

Combien de 0 sont configurés en fonction de la situation des données, pas trop

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.

Pour plus de connaissances sur Redis, veuillez faire attention à Tutoriel d'introduction à RedisColonne.

Ce qui précède est le contenu détaillé de. pour plus d'informations, suivez d'autres articles connexes sur le site Web de PHP en chinois!

Déclaration:
Cet article est reproduit dans:. en cas de violation, veuillez contacter admin@php.cn Supprimer