windows - 安装时如何指定redis配置文件?
问题描述
(在 Windows 上)
我知道我可以通过以下方式安装redis:
./redis-server --service-install --service-name myredis
但这将使用默认配置。我想要一些允许我在安装过程中指定 .conf 文件的东西。就像是:
./redis-server --service-install --service-name myredis --config-file my-config.conf
解决方案
这已经很老了,您可能已经找到了答案,但我想我会为那些在谷歌上搜索的人分享我发现的东西。
您可以通过执行以下操作来指定配置文件redis-server --service-install my-config.conf
,然后您可以验证启动参数现在是否包含您的配置文件。
推荐阅读
- android - 函数中的 setState 不起作用 | 扑
- perl - Perl 在 Strawberry Perl 中编译 PP 问题
- css - 如何更改 flex 容器的宽度?
- git - 如何为 GitLab CI 克隆私有子模块 GitHub
- gzip - 为什么在 Flutter 中提取档案会显示不在档案中以 _. 为前缀的文件?
- java - 无法应用插件“net.minecraftforge.gradle”。找到 java 版本 16.0.1。尚不支持版本 16 及更高版本
- javascript - 如何通过 Javascript 获取自定义 css 样式?
- unity3d - 如果蹲下时头顶有东西(统一3d),如何否定我的玩家卡住?
- c# - 焦点在另一个窗口时 FPS 下降
- python - 当我将其转换为 exe 时,Python 有效负载未连接