QForkMasterInit: system error caught. error code=0x000005af, message=VirtualAllocEx failed.: unknow

今天打开redis发现出现 QForkMasterInit: system error caught. error code=0x000005af, message=VirtualAllocEx failed.: unknow错误,经查阅相关质料发现是因为没有设置redis的最大内存所导致

在redis的配置文件(我的是windows版本的)中加入maxmemory和maxheap配置(单位为字节)

maxmemory 268435456
maxheap 314572800

再次启动,成功!记得一定要加上配置文件

redis-server.exe redis.windows.conf

猜你喜欢

转载自blog.csdn.net/Bb15070047748/article/details/86370138