Redis 启动失败 Please see the documentation included with the binary distributions for more details on the --maxheap flag.

JSON 2017-08-31 21:26:28 8529

Redis 启动失败

错误信息如下:

The Windows version of Redis allocates a memory mapped heap for sharing with the forked process used for persistence operations. In order to share this memory, Windows allocates from the system paging file a portion equal to the size of the Redis heap. At this time there is insufficient contiguous free space available in the system paging file for this operation (Windows error 0x5AF). To work around this you may either increase the size of the system paging file, or decrease the size of the Redis heap with the --maxheap flag. Sometimes a reboot will defragment the system paging file sufficiently for this operation to complete successfully.

Please see the documentation included with the binary distributions for more details on the --maxheap flag.

大概的意思:

Windows 为 Redis 分配了内存映射,但是这个内存是共享的... ... 减少Redis内存的使用,启动的时候指定内存大小。

这个本身在网上有很多说明这个问题的帖子,可是还是有同学不会找。

所以,用这个去启动,也就是在命令后加上--maxheap 200m,我这是给初始化200M

D:\redisbin_x64\redis-server.exe  D:\redisbin_x64\redis.conf  --maxheap 200m

启动成功如下:


版权所属:SO JSON在线解析

原文地址:https://www.sojson.com/blog/242.html

转载时必须以链接形式注明原始出处及本声明。

本文主题:

如果本文对你有帮助,那么请你赞助我,让我更有激情的写下去,帮助更多的人。

关于作者
一个低调而闷骚的男人。
相关文章
Linux Centos 使用 Redis service 启动Redis service 脚本编写
Elasticsearch 启动 Likely root cause: java.nio.file.AccessDeniedException
Kotlin Springboot 启动Application main 方法正确姿势
Ehcache项目启动完毕报错java.net.SocketTimeoutException: connect timed out
Redis教程,Redis集群搭建与Spring-data-redis的使用(Spring-data-redis使用篇)
Shiro教程(四)Shiro + Redis配置
Redis的理解,Redis是什么,Redis和Memcache谁快?
Redis与Memcached的比较 ,然后选择了Redis
SpringBoot 集成Spring-data-redisredis对象序列化存储
Redis 单线程模型分析
最新文章
PHP if/else/elseif 语句 63
HTML5 Canvas弧线教程 52
Java赋值运算符 118
XML内部实体和外部实体 201
Java面向对象编程概念 177
PHP回显语句 127
Linux—文件树 135
C语言while循环和do while循环 150
Python元组剖析 209
MySQL触发器教程 342
最热文章
最新MyEclipse8.5注册码,有效期到2020年 (已经更新) 682607
苹果电脑Mac怎么恢复出厂系统?苹果系统怎么重装系统? 674741
免费天气API,全国天气 JSON API接口,可以获取五天的天气预报 602701
免费天气API,天气JSON API,不限次数获取十五天的天气预报 579696
Jackson 时间格式化,时间注解 @JsonFormat 用法、时差问题说明 553093
我为什么要选择RabbitMQ ,RabbitMQ简介,各种MQ选型对比 509458
Elasticsearch教程(四) elasticsearch head 插件安装和使用 480074
Jackson 美化输出JSON,优雅的输出JSON数据,格式化输出JSON数据... ... 264851
Java 信任所有SSL证书,HTTPS请求抛错,忽略证书请求完美解决 244332
Elasticsearch教程(一),全程直播(小白级别) 225657
支付扫码

所有赞助/开支都讲公开明细,用于网站维护:赞助名单查看

查看我的收藏

正在加载... ...