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 单线程模型分析
最新文章
Elasticsearch 好消息, X-Pack的开源:第一阶段完成 25701
文字转语音接口,支持汉字、英语,文字转音频开放接口,还支持翻译播放 13694
Spring JPA查询,JPA 根据方法名字查询详细介绍 77145
Springboot JPA 执行原生sql ,自定义SQL占位符增加参数 113103
Java 随机从 List 随机获取多个不重复对象,Mysql 随机10条数据 34663
Linux 安装 Redis 详细步骤讲解 13065
Javascript 生成UUID,Java生成UUID 16705
Maven的Mirror和Repository 的详细讲解 61593
JDK1.7中新增自动释放资源接口AutoCloseable讲解 20418
对Java的常用对象(POJO、DTO、PO、BO、VO、DAO)详细解释及应用场景 53306
最热文章
Springboot JPA 执行原生sql ,自定义SQL占位符增加参数 113103
Spring JPA查询,JPA 根据方法名字查询详细介绍 77145
Maven的Mirror和Repository 的详细讲解 61593
对Java的常用对象(POJO、DTO、PO、BO、VO、DAO)详细解释及应用场景 53306
在windows上安装redis并设置密码,IP绑定【提供安装包】 45835
Java 随机从 List 随机获取多个不重复对象,Mysql 随机10条数据 34663
最新VS2012破解 序列号,vs2012旗舰版密钥序列号【收藏】 33827
Elasticsearch操作数据后马上更新的办法 27274
Elasticsearch 好消息, X-Pack的开源:第一阶段完成 25701
JDK1.7中新增自动释放资源接口AutoCloseable讲解 20418
支付扫码

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

查看我的收藏

正在加载... ...