radis闪退

点击redis.server.eve闪退
在redis文件夹下的cmd输入radis-server.eve redis.windows.conf
报错


1680152849326.png

查询百度后说是最大堆大小maxheap配置的问题,是因为可用的内存不足,不能满足maxheap配置的条件,所以无法启动
解决方法
打开redis的配置文件redis.windows.conf找到以下代码部分

The Redis heap must be larger than the value specified by the maxmemory

flag, as the heap allocator has its own memory requirements and

fragmentation of the heap is inevitable. If only the maxmemory flag is

specified, maxheap will be set at 1.5*maxmemory. If the maxheap flag is

specified along with maxmemory, the maxheap flag will be automatically

increased if it is smaller than 1.5*maxmemory.

maxheap <bytes>

在代码上加上这一行maxheap 51200000

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容