首页 > 解决方案 > 安装时如何指定redis配置文件?

问题描述

(在 Windows 上)

我知道我可以通过以下方式安装redis:

./redis-server --service-install --service-name myredis

但这将使用默认配置。我想要一些允许我在安装过程中指定 .conf 文件的东西。就像是:

./redis-server --service-install --service-name myredis --config-file my-config.conf

标签: windowsredis

解决方案


这已经很老了,您可能已经找到了答案,但我想我会为那些在谷歌上搜索的人分享我发现的东西。

您可以通过执行以下操作来指定配置文件redis-server --service-install my-config.conf,然后您可以验证启动参数现在是否包含您的配置文件。


推荐阅读