gpt4 book ai didi

windows - Redis 服务在 Windows 中启动并立即停止

转载 作者:IT王子 更新时间:2023-10-29 06:00:39 27 4
gpt4 key购买 nike

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

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

我得到的确切消息是:

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 的磁盘可用空间。

我更改了 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.

关于windows - Redis 服务在 Windows 中启动并立即停止,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31664680/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com