在Windows上运行Redis作为服务

我已经遵循了我能find的所有build议。
我在Windows 2008上运行redis上的当前版本我可以从命令行运行fin我可以安装服务,但它不运行

我做… redis-server –service-install redis.windows.conf并获取“redis作为服务成功安装”

然后我尝试启动服务做… redis-server –service-start redis.windows.conf –loglevel verbose并获取Redis服务启动失败

我已经确定我已经安装了.net framework 4.5.2,我已经尝试了closures防火墙,并在文件夹上安全地玩过。

有人有主意吗?

(圣诞快乐全部)

从命令行启动redis服务器而不是服务,它将显示更有用的错误消息。 如果您只是使用默认配置,则很可能是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. 

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

老问题,但我碰到它,而试图获得Win7x64安装使用二进制文件Redis-x64-2.8.2101工作。 尽管摆弄各种选项,但是在使用配置运行时没有给出有意义的错误,并且在本机运行时只显示虚假的磁盘空间错误,所以无法启动它。

有关github上似乎有一个问题,链接在这里为未来的好处: https : //github.com/MSOpenTech/redis/issues/267