Redis 服务在 Windows 后启动并立即停止

Redis service starts and immediately stops in Windows

我正在尝试 运行 Redis Windows Server 2008 https://msopentech.com/opentech-projects/redis/

我已经在几台机器上安装了它,它们都工作正常。 我也尝试过使用许多登录名:管理员帐户、本地系统、网络服务,其中 none 有效。

我收到的确切消息是:

The Redis service on Local Computer started and then stopped.
Some services stop automatically if they are not in use by other services or programs.

我也试过从命令行启动服务,但我得到的是:

[3472] 27 Jul 17:51:45.375 # Redis service failed to start.

事件查看器中没有日志。

正如 Komrade P 在评论中指出的那样,由于存储问题,Redis 没有启动。 我只有 16GB 可用的 HD 和 8GB 内存。根据 Redis,使用 8GB 内存,您将需要 24GB 可用磁盘 space。

我更改了 maxheap、heapdir 和 maxmemory 的值以使其工作。 基本上我的问题在配置文件中有解释:

# *** There must be disk space available for this file in order for Redis 
# to launch. *** The default configuration places this file in the local 
# appdata directory. If you wish to move this file to another local disk,
# use the heapdir flag as described below.

# 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.