说明

默认情况下,redis只允许本机访问。如果需要外部访问,需要修改下配置文件。

配置修改

redis.windows.conf
将bind 127.0.0.1 注释
将protected-mode修改为no
配置redis服务器允许远程连接

 

 

重启redis

重启redis必须指定配置文件redis.windows.conf
命令:redis-server redis.windows.conf
备注:如果不指定配置文件,redis仍然会取默认配置,redis服务会正常开启,但是无法远程连接。
 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-17
  • 2021-07-01
  • 2022-12-23
  • 2021-07-11
  • 2021-07-09
猜你喜欢
  • 2021-07-02
  • 2021-12-28
  • 2022-12-23
  • 2021-12-18
  • 2021-12-28
  • 2021-12-29
  • 2021-12-18
相关资源
相似解决方案