把redis的路径加到系统的环境变量里,出现Invalid argument during startup: Failed to open the .conf file: redis.conf CWD

在尝试将Redis路径添加到系统环境变量中时遇到问题,启动时显示'Invalid argument during startup: Failed to open the .conf file: redis.conf'。直接运行redis-server.exe提示没有指定配置文件。切换目录后问题依旧。尝试更换Redis版本,但仍然报'Fatal error, can't open config file 'redis.conf''。怀疑是配置文件路径或内容异常,但更改目录名和排查特殊字符未解决问题,目前尚未找到解决方案。" 115988688,10544568,易如意网络验证系统1.1 开源版,"['PHP', '网络验证', '开源系统', 'API接口']

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

最近在学怎么用redis,想把把redis的路径加到系统的环境变量里,结果出现了下面这个问题

Invalid argument during startup: Failed to open the .conf file: redis.conf CWD=C:\Users\Jueny

 

直接写redis-server.exe报

[23656] 17 Jun 17:13:14.298 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server.exe /path/to/redis.conf
[23656] 17 Jun 17:13:14.305 # Creating Server TCP listening socket *:6379: listen: Unknown error

如图


切换目录后

C:\Users\Jueny>d:

D:\>cd D:\TheOth\AppData\Redis

D:\TheOth\AppData\Redis>redis-server.exe redis.conf
Invalid argument during star
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值