在Windows as服务上运行Redis

在Windows as服务上运行Redis,windows,service,redis,Windows,Service,Redis,我已经采纳了我能找到的所有建议。 我正在windows 2008上的redis上运行当前版本 我可以从命令行运行fin 我可以安装服务,但它不运行 我知道。。。 redis服务器--服务安装redis.windows.conf 并获取“redis作为服务成功安装” 然后我试着开始服务做。。。 redis服务器--服务启动redis.windows.conf--日志级别详细信息 和获取Redis服务无法启动 我已确保安装了.net framework 4.5.2,我已尝试关闭防火墙,并对文件夹进行

我已经采纳了我能找到的所有建议。
我正在windows 2008上的redis上运行当前版本 我可以从命令行运行fin 我可以安装服务,但它不运行

我知道。。。 redis服务器--服务安装redis.windows.conf 并获取“redis作为服务成功安装”

然后我试着开始服务做。。。 redis服务器--服务启动redis.windows.conf--日志级别详细信息 和获取Redis服务无法启动

我已确保安装了.net framework 4.5.2,我已尝试关闭防火墙,并对文件夹进行了安全保护

有人有什么想法吗


(圣诞快乐)

从命令行而不是作为服务启动redis server,它将显示一条更有用的错误消息。如果只是使用默认配置,则很可能是maxmemory/maxheap配置有问题

C:\redis>redis-server.exe redis.windows.conf
[1576] 04 Feb 10:32:54.172 #
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-x64-2.8.2101安装Win7x64时遇到了这个问题。尽管摆弄了各种选项,但无法启动它,在使用配置运行时没有给出任何有意义的错误,在本机运行时只有一个明显的虚假磁盘空间错误


与github相关的、链接到此处以供将来使用的github上似乎存在一个问题:

在我的情况下,默认命令行配置没有启用日志记录,而服务配置启用了日志记录。没有地方会抱怨这一点。
尝试创建目录。/Logs.

在我的情况下,Windows服务无法启动,我尝试了这个方法,它告诉我maxheap大小大于驱动器上的可用空间,并降低该值或将堆移动到空间更大的驱动器。在我的情况下,您是如何做到的?我已将maxheap和maxmemory大小更改为256MB但仍面临此错误??请相信我,我想我打了同样的东西。我将maxsheap和maxmemory都设置为1024,但它仍然给了我Neil回答中提到的错误:(@Daniel有任何解决方案吗?我只是做了同样的事情,但仍然得到相同的错误???@SudhanshuGaur看起来Daniel引用的问题在版本2.8.2103中得到了修复,因此如果您使用的是最新版本,您不应该有这个问题。在上面的问题中,有一个引用,可能就是您遇到的问题。如果您还没有这样做,请尝试从管理员命令提示符启动服务,看看是否有效。非常感谢您的回复,我已经解决了分配最大堆大小的问题这是命令redis server redis.windows.conf--maxheap 1gbGlad您找到了解决方案:)是的,就是这样!