【redis已解决】Warning: no config file specified, using the default config. In order to specify a config

发布时间 2023-06-23 10:46:12作者: 水狼一族

1.启动redis:双击redis-server.exe。

报错:Warning: no config file specified, using the default config. In order to specify a config file use F:\liuf\Redis3\redis-server.exe /path/to/redis.conf

 

2.解决方法一:

点击这个报错表示没有指定配置文件,使用默认配置。要指定配置文件,请使用redis-server /path/to/redis.conf

在cmd中指定根据redis.conf配置文件的配置启动redis:redis-server.exe redis.conf

3.解决方法二:

新建一个启动项Server.bat,用此启动项进行启动,则没有上述报错情况。启动后在客户端使用命令:‘auth 密码’ 进行验证即可。