我刚刚从这里在Windows上安装了redis服务器,并在默认模式下运行服务器,没有指定配置文件。
如何将配置文件(使用Windows)链接到服务器,以及如何指定要将dtb保存在其中的文件夹?
该文件夹如下所示:
发布于 2015-03-04 15:13:12
您所需要做的就是运行redis-server.exe,然后是配置文件的文件名。
例:
D:\Coding\RedisIO>redis-server.exe redis.windows.conf对于db文件,需要添加/更改配置文件中的行:
# The filename where to dump the DB
dbfilename dump.rdb和下面的配置文件中的条目
# 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 ./发布于 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。运行这台服务器,你就没事了。
发布于 2020-04-02 13:39:33
如果使用MSI包安装Redis,那么Redis已经安装为Windows服务。如果要更改其设置,可以更新安装文件夹中的redis.windows-service.conf文件,然后重新启动Redis服务(运行-> services.msc -> Redis ->重新启动)。
有关详细说明,请参阅安装文件夹中提供的名为Windows Documentation.docx的文档
https://stackoverflow.com/questions/28443515
复制相似问题