“Redis server 要是有配置文件,启动时一定指定配置文件”的版本间的差异
跳到导航
跳到搜索
Jihongchang(讨论 | 贡献) (建立内容为“1”的新页面) |
Jihongchang(讨论 | 贡献) |
||
第1行: | 第1行: | ||
− | 1 | + | Windows 上在 redis 根目录下的 <code>redis.windows.conf</code> 中进行了 requirepass vn4sj5kbxdaG, |
+ | |||
+ | 死活不生效, | ||
+ | |||
+ | 觉得按说默认配置文件就是 <code>redis.windows.conf</code>,但运行 redis-server.exe 启动 server 就是提示<syntaxhighlight lang="powershell"> | ||
+ | …… | ||
+ | [2092] 18 Feb 12:16:38.598 # Warning: no config file specified, using the default config. In order to specify a config file use .\redis-server.exe /path/to/redis.conf | ||
+ | …… | ||
+ | </syntaxhighlight>然后运行<syntaxhighlight lang="powershell"> | ||
+ | F:\下载目录\Redis-x64-5.0.14.1>.\redis-server.exe redis.windows.conf | ||
+ | [35088] 18 Feb 12:24:25.645 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo | ||
+ | [35088] 18 Feb 12:24:25.646 # Redis version=5.0.14.1, bits=64, commit=ec77f72d, modified=0, pid=35088, just started | ||
+ | [35088] 18 Feb 12:24:25.646 # Configuration loaded | ||
+ | …… | ||
+ | </syntaxhighlight>就好了 |
2023年2月18日 (六) 04:25的最新版本
Windows 上在 redis 根目录下的 redis.windows.conf
中进行了 requirepass vn4sj5kbxdaG,
死活不生效,
觉得按说默认配置文件就是 redis.windows.conf
,但运行 redis-server.exe 启动 server 就是提示
……
[2092] 18 Feb 12:16:38.598 # Warning: no config file specified, using the default config. In order to specify a config file use .\redis-server.exe /path/to/redis.conf
……
然后运行
F:\下载目录\Redis-x64-5.0.14.1>.\redis-server.exe redis.windows.conf
[35088] 18 Feb 12:24:25.645 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
[35088] 18 Feb 12:24:25.646 # Redis version=5.0.14.1, bits=64, commit=ec77f72d, modified=0, pid=35088, just started
[35088] 18 Feb 12:24:25.646 # Configuration loaded
……
就好了