Windows 7 Redis服务赢得';不要在windows上启动

Windows 7 Redis服务赢得';不要在windows上启动,windows-7,redis,windows-services,Windows 7,Redis,Windows Services,当我尝试启动redis服务时,我不断遇到以下错误: “本地计算机上的Redis服务启动后停止。如果其他服务或程序未使用某些服务,则会自动停止。” 唯一有效的方法是重新启动我的计算机,然后redis服务在启动时运行。 为了使它更好地工作,我是否需要设置任何配置? 我使用.msi版本2.8.2104安装了redis 非常感谢您的帮助!感谢那些可能有类似问题的人(像我们一样),我找到了另一个解决方案 我们正在运行的机器(测试)驱动器上只有7GB的可用空间。但是我们有16GB的RAM。在我们的redi

当我尝试启动redis服务时,我不断遇到以下错误:

“本地计算机上的Redis服务启动后停止。如果其他服务或程序未使用某些服务,则会自动停止。”

唯一有效的方法是重新启动我的计算机,然后redis服务在启动时运行。 为了使它更好地工作,我是否需要设置任何配置? 我使用.msi版本2.8.2104安装了redis


非常感谢您的帮助!感谢那些可能有类似问题的人(像我们一样),我找到了另一个解决方案

我们正在运行的机器(测试)驱动器上只有
7GB
的可用空间。但是我们有
16GB
的RAM。在我们的
redis.windows.conf
文件中,有一个名为
maxheap
的设置没有设置

根据
maxheap
上的文档:

# The maxheap flag controls the maximum size of this memory mapped file,
# as well as the total usable space for the Redis heap. Running Redis
# without either maxheap or maxmemory will result in a memory mapped file 
# being created that is equal to the size of physical memory. During 
# fork() operations the total page file commit will max out at around:
#
#    (size of physical memory) + (2 * size of maxheap)
#
# For instance, on a machine with 8GB of physical RAM, the max page file 
# commit with the default maxheap size will be (8)+(2*8) GB , or 24GB. The
# default page file sizing of Windows will allow for this without having 
# to reconfigure the system. Larger heap sizes are possible, but the maximum
# page file size will have to be increased accordingly.
# 
# The Redis heap must be larger than the value specified by the maxmemory 
# flag, as the heap allocator has its own memory requirements and 
# fragmentation of the heap is inevitable. If only the maxmemory flag is 
# specified, maxheap will be set at 1.5*maxmemory. If the maxheap flag is 
# specified along with maxmemory, the maxheap flag will be automatically 
# increased if it is smaller than 1.5*maxmemory. 
#  
# maxheap <bytes>
#maxheap标志控制此内存映射文件的最大大小,
#以及Redis堆的总可用空间。运行Redis
#如果没有maxheap或maxmemory,将导致内存映射文件
#正在创建的大小等于物理内存的大小。在期间
#fork()操作总页面文件提交的最大值约为:
#
#(物理内存大小)+(2*maxheap大小)
#
#例如,在具有8GB物理RAM的计算机上,最大页面文件
#默认maxheap大小为(8)+(2*8)GB或24GB的提交。这个
#Windows的默认页面文件大小将允许此操作,而无需
#重新配置系统。较大的堆大小是可能的,但最大
#页面文件大小必须相应增加。
# 
#Redis堆必须大于maxmemory指定的值
#标志,因为堆分配器有自己的内存需求和
#堆的碎片化是不可避免的。如果只有maxmemory标志是
#指定时,maxheap将设置为1.5*maxmemory。如果maxheap标志为
#与maxmemory一起指定时,maxheap标志将自动
#如果小于1.5*maxmemory,则增加。
#  
#最大堆

因此,我将其设置为一个合理的值,服务立即启动。

我在配置(ini)中发现一个读写错误
请签出INI上指定的所有文件和目录。

右键单击窗口服务中的服务并转到属性。然后转到“登录”选项卡并选择“本地系统帐户”。单击“确定”按钮并启动服务。

在windows i中检查事件查看器时,发现它抱怨没有磁盘空间,其他人也有类似的错误。解决方案是在conf文件中设置
maxheap
设置。我将它设置为2gb,它开始工作正常!我遇到了同样的问题,即Redis服务没有启动,甚至另一个服务也没有停止,并且没有文件名
Redis.windows.conf
。有什么建议吗?@bjan
redis.windows.conf
文件位于
redis
的根文件夹中。但是,我承认我没有在该服务器上安装Redis,因此其他人可能已经手动创建了该文件。我相信你只需要5个
exe
文件和一个配置文件。您应该能够在线找到一个示例配置文件。我试图安装多个Redis实例(MSOpenTech版本),但失败了,然后使用了旧版本。