【问题标题】:Redis Server doesn't start or do anything - Redis-64 on WindowsRedis 服务器不启动或不执行任何操作 - Windows 上的 Redis-64
【发布时间】:2017-09-21 18:02:57
【问题描述】:

我正在按照此链接上的这些步骤概述,但是当我尝试启动服务器时,没有任何反应,也无法从客户端连接到任何东西。有谁知道如何运行它?

当我从命令提示符尝试而不是双击 redis-server.exe 时,我收到此消息

[11868] 7 月 23 日 11:58:26.325 # QForkMasterInit:捕获系统错误。错误代码=0 x000005af, message=VirtualAllocEx 失败。:未知错误

http://bartwullems.blogspot.ca/2013/07/unofficial-redis-for-windows.html

安装 Redis 最简单的方法是通过 NuGet:

Open Visual Studio
Create an empty solution so that NuGet knows where to put the packages
Go the Package Manager Console: Tools –> Library Package Manager –>Package Manager Console
Type Install-Package Redis-64

图片

Go to the Packages folder and browse to the Tools folder. Here you’ll find the Redis-server.exe. Double click on it to start it.

Redis 已准备好使用并开始监听特定端口(6379 in 我的情况)

图片

Let’s open up a client and try to put a value into Redis. Start Redis-cli.exe. It already connects to the same port by default.

图片

Add a value by executing following command:

图片

Read the value again:

图片

【问题讨论】:

    标签: redis nosql


    【解决方案1】:

    尝试使用 redis-server --maxheap 4000000 运行

    【讨论】:

      【解决方案2】:

      米格尔是正确的,但并不是那么简单。要将 redis-server 作为服务或从命令提示符启动,可用 RAM 和磁盘空间的数量必须足以让 Redis 按配置运行。

      现在,如果在运行 Redis 时没有指定配置文件,它将使用默认配置值。所有这些都记录在 redis.windows.conf 文件以及文档“Redis on Windows.docx”中(均与 redis 安装一起部署)。

      根据我的经验,启动 Redis 时的错误通常来自缺少可用资源(RAM 或磁盘空间)或 maxhead 或 maxmemory 参数的某些错误配置。

      要解决此类行为,请检查系统的可用资源并尝试从命令行运行 redis-server,更改参数 maxmemory、maxheap 和/或 heapdir。设置为详细的 loglevel 参数也可能有助于诊断问题。

      问候

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2011-01-21
        • 2020-03-27
        • 1970-01-01
        • 2012-08-07
        • 1970-01-01
        • 2018-12-14
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多