windows下redis启动失败提示maxheap flag
2023-09-14 09:00:01 时间
windows下redis启动失败
D:\redis>redis-server.exe redis.conf [8292] 18 Oct 15:51:39.789 # 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. Redis can not continue. Exiting.
没有足够的可用空间,可以增加系统的大小分页文件,或减少Redis的堆的大小
解决方法
(1)在启动命令后面加maxheap参数重新分配堆大小
redis-server.exe redis.conf --maxheap 1024000000
(2)修改配置文件redis.conf,添加
maxheap 1024000000
如果还不行,就清理磁盘
相关文章
- 解决can't connect to redis-server
- Redis安装完后redis-cli无法使用(redis-cli: command not found)
- Redis启动和在注册到windows服务
- 15天玩转redis —— 第四篇 哈希对象类型
- Redis学习(8)-redis持久化
- Redis学习(3)-redis启动
- Redis学习(2)-redis安装
- Redis-Cluster实战--5.使用redis-cli安装
- 你知道吗?我喜欢你六年了——微博Redis定制化之路
- 〖Python 数据库开发实战 - Python与Redis交互篇⑥〗- redis-py 的事务函数
- redis分布式锁的这些坑,我怀疑你是假的开发
- 看故事学Redis:再不懂,我怀疑你是假个开发
- 讨论两种Redis中Token的存储方式
- 深入理解 Redis Template及4种序列化方式__spring boot整合redis实现RedisTemplate三分钟快速入门
- redis启动报错,需要关闭快照,报错-MISCONF Redis is configured to save RDB snapshots-解决
- Linux下安装Redis
- C# 编写Windows Service(windows服务程序)
- redis_06 _ 数据同步:主从库如何实现数据一致
- Redis---事务篇
- 【中间件】Redis与MySQL双写一致性如何保证?--缓存和数据库在双写场景下一致性是如何保证的
- Redis_09_Redis内存回收机制
- RedisInsight redis官方可视化工具 —— 筑梦之路