windows版redis报错:本地计算机上的Redis服务启动后停止
2017-07-07 17:00
543 查看
转载:http://blog.csdn.net/pucao_cug/article/details/68951860
Redis有windows版和Linux版的,本文讲的是windows版相关的一些问题。
--service-install redis.windows.conf命令将redis注册为服务,启动服务时报错:
本地计算机上的Redis服务启动后停止。某些服务在未由其他服务或程序使用时将自动停止。
使用命令redis-server.exe redis.windows.conf临时安装redis,结果报错:
The Windows version of Redis allocates a memory mapped heap forsharing with
the forked process used for persistenceoperations. In order to share this
memory, Windows allocates from the systempaging file a portion equal to the
size of the Redis heap. At this time thereis insufficient contiguous free
space available in the system paging filefor this operation (Windows error
0x5AF). To work around this you may eitherincrease the size of the system
paging file, or decrease the size of theRedis heap with the --maxheap flag.
<
4000
span style="font-size:18px;">Sometimes a reboot will defragment thesystem paging file sufficiently for
this operation to complete successfully.
Please see the documentation included withthe binary distributions for more
details on the --maxheap flag.
Redis can not continue. Exiting.
如图:
说明:200m是指定最大堆内存是200m,当然你也可以修改得在大一些
redis-server --service-uninstall
卸载完成后,重新安装服务,执行命令:
redis-server.exe --service-install redis.windows.conf --maxheap 200m
说明:200m是指定最大堆内存是200m,当然你也可以修改得在大一些
地址是:
https://github.com/MSOpenTech/redis/releases
windows系统的话,可以下载msi版直接安装,我这里下载的是zip版,自己执行命令来安装
如图:
1问题
2
原因
3解决
3.1
如果需要临时启动Redis
3.2
如果需要将Redis注册为服务
4其他说明
Redis有windows版和Linux版的,本文讲的是windows版相关的一些问题。
--service-install redis.windows.conf命令将redis注册为服务,启动服务时报错:
本地计算机上的Redis服务启动后停止。某些服务在未由其他服务或程序使用时将自动停止。
使用命令redis-server.exe redis.windows.conf临时安装redis,结果报错:
The Windows version of Redis allocates a memory mapped heap forsharing with
the forked process used for persistenceoperations. In order to share this
memory, Windows allocates from the systempaging file a portion equal to the
size of the Redis heap. At this time thereis insufficient contiguous free
space available in the system paging filefor this operation (Windows error
0x5AF). To work around this you may eitherincrease the size of the system
paging file, or decrease the size of theRedis heap with the --maxheap flag.
Sometimes a reboot will defragment thesystem paging file sufficiently for
this operation to complete successfully.
Please see the documentation included withthe binary distributions for more
details on the --maxheap flag.
Redis can not continue. Exiting.
如图:
说明:200m是指定最大堆内存是200m,当然你也可以修改得在大一些
redis-server --service-uninstall
卸载完成后,重新安装服务,执行命令:
redis-server.exe --service-install redis.windows.conf --maxheap 200m
说明:200m是指定最大堆内存是200m,当然你也可以修改得在大一些
地址是:
https://github.com/MSOpenTech/redis/releases
windows系统的话,可以下载msi版直接安装,我这里下载的是zip版,自己执行命令来安装
如图:
Redis有windows版和Linux版的,本文讲的是windows版相关的一些问题。
1、问题
使用命令redis-server.exe--service-install redis.windows.conf命令将redis注册为服务,启动服务时报错:
本地计算机上的Redis服务启动后停止。某些服务在未由其他服务或程序使用时将自动停止。
使用命令redis-server.exe redis.windows.conf临时安装redis,结果报错:
The Windows version of Redis allocates a memory mapped heap forsharing with
the forked process used for persistenceoperations. In order to share this
memory, Windows allocates from the systempaging file a portion equal to the
size of the Redis heap. At this time thereis insufficient contiguous free
space available in the system paging filefor this operation (Windows error
0x5AF). To work around this you may eitherincrease the size of the system
paging file, or decrease the size of theRedis heap with the --maxheap flag.
<
4000
span style="font-size:18px;">Sometimes a reboot will defragment thesystem paging file sufficiently for
this operation to complete successfully.
Please see the documentation included withthe binary distributions for more
details on the --maxheap flag.
Redis can not continue. Exiting.
如图:
2、原因
由于没有指定maxheap导致的,当然了不指定该参数不一定报错,但是出现上述原因,通常是这个原因导致的。3、解决
3.1、如果需要临时启动Redis
使用命令:redis-server.exe redis.windows.conf --maxheap 200m说明:200m是指定最大堆内存是200m,当然你也可以修改得在大一些
3.2、如果需要将Redis注册为服务
如果已经注册为了服务,先卸载掉,卸载方法是,用cmd进入到你的redis文件的目录,然后执行命令:redis-server --service-uninstall
卸载完成后,重新安装服务,执行命令:
redis-server.exe --service-install redis.windows.conf --maxheap 200m
说明:200m是指定最大堆内存是200m,当然你也可以修改得在大一些
4、其他说明
可以到github上下载最新版的redis地址是:
https://github.com/MSOpenTech/redis/releases
windows系统的话,可以下载msi版直接安装,我这里下载的是zip版,自己执行命令来安装
如图:
1问题
2
原因
3解决
3.1
如果需要临时启动Redis
3.2
如果需要将Redis注册为服务
4其他说明
Redis有windows版和Linux版的,本文讲的是windows版相关的一些问题。
1、问题
使用命令redis-server.exe--service-install redis.windows.conf命令将redis注册为服务,启动服务时报错:
本地计算机上的Redis服务启动后停止。某些服务在未由其他服务或程序使用时将自动停止。
使用命令redis-server.exe redis.windows.conf临时安装redis,结果报错:
The Windows version of Redis allocates a memory mapped heap forsharing with
the forked process used for persistenceoperations. In order to share this
memory, Windows allocates from the systempaging file a portion equal to the
size of the Redis heap. At this time thereis insufficient contiguous free
space available in the system paging filefor this operation (Windows error
0x5AF). To work around this you may eitherincrease the size of the system
paging file, or decrease the size of theRedis heap with the --maxheap flag.
Sometimes a reboot will defragment thesystem paging file sufficiently for
this operation to complete successfully.
Please see the documentation included withthe binary distributions for more
details on the --maxheap flag.
Redis can not continue. Exiting.
如图:
2、原因
由于没有指定maxheap导致的,当然了不指定该参数不一定报错,但是出现上述原因,通常是这个原因导致的。3、解决
3.1、如果需要临时启动Redis
使用命令:redis-server.exe redis.windows.conf --maxheap 200m说明:200m是指定最大堆内存是200m,当然你也可以修改得在大一些
3.2、如果需要将Redis注册为服务
如果已经注册为了服务,先卸载掉,卸载方法是,用cmd进入到你的redis文件的目录,然后执行命令:redis-server --service-uninstall
卸载完成后,重新安装服务,执行命令:
redis-server.exe --service-install redis.windows.conf --maxheap 200m
说明:200m是指定最大堆内存是200m,当然你也可以修改得在大一些
4、其他说明
可以到github上下载最新版的redis地址是:
https://github.com/MSOpenTech/redis/releases
windows系统的话,可以下载msi版直接安装,我这里下载的是zip版,自己执行命令来安装
如图:
相关文章推荐
- windows版redis报错:本地计算机上的Redis服务启动后停止
- 本地计算机 上的 Redis Server 服务启动后停止
- windows版redis报错:本地计算机上的Redis服务启动后停止
- windows 10安装mysql 5.7后,启动服务提示“本地计算机上的mysql服务启动后停止,某些服务在未由其他服务或程序使用时将自动停止。
- 本地计算机上的XXX服务启动后又停止了——Windows Service服务调试(二)
- 本地计算机上的MSSQLSERVER服务启动后又停止了。一些服务自动停止,如果它们没有什么可做的
- 解决“本地计算机上的MSSQLSERVER服务启动后又停止了。一些服务自动停止,如果它们没有什么可做的”
- 本地计算机上的MSSQLSERVER服务启动后又停止了。一些服务自动停止,如果它们没有什么可做的,例如“性能日志和警报“服务"。
- 关于"Windows不能在本地计算机启动Apache2.......并参考特定服务错误代码1"问题解决
- 本地计算机上的MSSQLSERVER服务启动后又停止了
- 本地计算机上的SQLSERVERAGENT 服务启动后又停止了
- 本地计算机上的MSSQLSERVER服务启动后又停止了。一些服务自动停止,如果它们没有什么可做的
- IIS网站已经停止,提示服务器没有及时响应启动或控制请求!本地计算机法启动 World Wide Web Publishing 服务。提示 “错误127: 找不到指定的程序”或者“错误1721,资源不足,无法启动
- “本地计算机上的SQL SERVER服务启动后又停止了”解决方法
- Windows 不能在 本地计算机 启动 SQL Server (MSSQLSERVER)。有关更多信息,查阅系统事件日志。如果这是非 Microsoft 服务,请与服务厂商联系,并参考特定服务错误代码 3417。
- Apache2服务启动失败 “本地计算机上的Apache服务启动后又停止了”的错误的解决方案
- 本地计算机上的OracleOraHome92Agent服务启动后又停止了
- 本地计算机上的OracleOraHome92Agent服务启动后又停止了
- Apache2“本地计算机上的Apache服务启动后又停止了”的错误的解决方案
- 本地计算机上的MSSQLSERVER服务启动后又停止了。一些服务自动停止,如果它们没有什么可做的,例如“性能日志和警报“服务"。