首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Windows上将Redis作为服务运行

在Windows上将Redis作为服务运行
EN

Stack Overflow用户
提问于 2014-12-25 00:38:59
回答 3查看 12.1K关注 0票数 14

我遵循了我能找到的所有建议。

我在windows 2008上的redis上运行当前版本,我可以从命令行运行fin,我可以安装服务,但它不能运行

我知道..。redis-server --service-安装redis.windows.conf并获取"redis成功安装为服务“

然后我试着启动服务做...redis-server -- service -start redis.windows.conf --loglevel verbose和get Redis服务启动失败

我已经确保我已经安装了.net框架4.5.2,我已经尝试了关闭防火墙,并尝试了文件夹的安全性。

有谁有什么想法吗?

(所有人圣诞快乐)

EN

回答 3

Stack Overflow用户

发布于 2015-02-05 02:44:12

从命令行启动redis服务器,而不是作为服务,它将显示更有用的错误消息。如果您只是使用缺省配置,那么很可能是maxmemory/maxheap配置有问题。

代码语言:javascript
复制
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.
票数 15
EN

Stack Overflow用户

发布于 2016-09-09 23:12:46

在我的例子中,默认的命令行配置没有启用日志记录,而服务配置启用了日志记录。没有任何地方可以抱怨这一点。尝试创建目录./Logs。

票数 9
EN

Stack Overflow用户

发布于 2015-08-07 04:03:47

老问题,但我在尝试使用二进制文件Redis-x64-2.8.2101安装Win7x64时遇到了这个问题。无法让它启动,尽管摆弄了各种选项,在运行配置时没有给出有意义的错误,并且在本机运行时只有一个明显的虚假磁盘空间错误。

似乎有一个与github相关的问题,链接到这里是为了将来的好处:https://github.com/MSOpenTech/redis/issues/267

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/27639823

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档