windows中redis 服务器给其他电脑连接,no config file specified, using the default config. In order to specify a c

执行   redis-server 报如下错
#  Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf

或者

windows中redis 服务器给其他电脑连接不上

的解决方法:

windows安装redis服务器,解压缩的文件夹里面由配置文件,网上都说是redis.conf,但我的就没有,后来确定我的配置文件是redis.windows.conf,如何确定自己配置文件是啥呢?看图:

没错,右击此电脑->管理->服务和应用程序->找到redis,右击属性,可以看到可执行的文件路径最后写着

--server-run  redis.windows.conf,所以我的配置文件就是他,那么去redis文件夹打开查看

我对该文件备份了一下,然后打开文件将其中

# bind 127.0.0.1   注释掉

在文件最后添加如下两行:
daemonize no
protected-mode no

然后就可以连接啦!!!ok!!!