首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Windows - config文件上的Redis

Windows - config文件上的Redis
EN

Stack Overflow用户
提问于 2015-02-10 22:59:03
回答 3查看 28.8K关注 0票数 11

我刚刚从这里在Windows上安装了redis服务器,并在默认模式下运行服务器,没有指定配置文件。

如何将配置文件(使用Windows)链接到服务器,以及如何指定要将dtb保存在其中的文件夹?

该文件夹如下所示:

  • 文件夹: C:\Program \Redis\ conf -有一些模板conf文件
  • 文件夹: C:\Program \Redis\data-空
  • 文件夹: C:\Program \Redis\logs空
  • 文件: C:\Program \redis\redis-server.exe
  • 文件: C:\Program \redis\redis。
EN

回答 3

Stack Overflow用户

回答已采纳

发布于 2015-03-04 15:13:12

您所需要做的就是运行redis-server.exe,然后是配置文件的文件名。

例:

代码语言:javascript
复制
D:\Coding\RedisIO>redis-server.exe redis.windows.conf

对于db文件,需要添加/更改配置文件中的行:

代码语言:javascript
复制
# The filename where to dump the DB
dbfilename dump.rdb

和下面的配置文件中的条目

代码语言:javascript
复制
# The working directory.
#
# The DB will be written inside this directory, with the filename specified
# above using the 'dbfilename' configuration directive.
# 
# The Append Only File and the QFork memory mapped file will also be created 
# inside this directory.
# 
# Note that you must specify a directory here, not a file name.
# The working directory.
#
# The DB will be written inside this directory, with the filename specified
# above using the 'dbfilename' configuration directive.
# 
# The Append Only File and the QFork memory mapped file will also be created 
# inside this directory.
# 
# Note that you must specify a directory here, not a file name.
dir ./
票数 15
EN

Stack Overflow用户

发布于 2020-08-10 12:36:17

您可能已经从(https://github.com/microsoftarchive/redis/releases)安装了Redis 3.2.100。但这让我犯了错误。

要解决这个问题,请从(https://github.com/tporadowski/redis/releases)下载Redis 5.0.9。运行这台服务器,你就没事了。

票数 4
EN

Stack Overflow用户

发布于 2020-04-02 13:39:33

如果使用MSI包安装Redis,那么Redis已经安装为Windows服务。如果要更改其设置,可以更新安装文件夹中的redis.windows-service.conf文件,然后重新启动Redis服务(运行-> services.msc -> Redis ->重新启动)。

有关详细说明,请参阅安装文件夹中提供的名为Windows Documentation.docx的文档

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

https://stackoverflow.com/questions/28443515

复制
相关文章

相似问题

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